R like Reality

Last three days were filled up with brain-overheating intensive course on R. R is a name for software available online for free and used for most of the academics all over the world. It consists of thousands of functions one has to remember by heart in order to make a full use of it. R software provides very powerful computing environment for: - statistical analyses, - database management, -programming, -graphics creation... and much more...

Today I had a dream which brought me to 'Matrix'. I was so much into programming in R that i managed to create a real world full of fantasy monsters. One of them were chasing me. I knew that if I fail to write a right script on time it will catch and kill me. Running and stumbling with my comp on my hands I tried to programme as quickly as possible a commend protecting me from his weapon : ) Then I woke up. Let me present You my first script I have created myself (very easy, no monsters):

#load package called 'maps'
map('world')
library()
map('world',xlim=c(12,25),ylim=c(48,59))
points(22.340641,51.144909, pch=16)
text(22.340641,50.864909, labels='Lublin')
text(17.51581, 52.98358, labels='Poland', cex=2)

If You type it into R properly You will get a map of my country with exact location and name of the city where I ve been born, exactly like this one below:
I think I may be proud of myself : )

Comments

Post a Comment

Popular posts from this blog

Glorious / Disgraceful Tuesday 19 June 2018

Igatsus

Snow of Irritation