Firstly we need first to complete Try R. a very useful tool in order to start programming. I finally achieve the 8 levels, do you want a proof? Of course I’ll show you:
Thanks to Try R, I can start new challenges. Today, I’ll try to build a graph taking data from the web, and coding in R. Ready? The first thing to do is to download R, and next Rstudio. When you achieve this, you’re ready to start the hard work.
Nowadays we observe an incredible amount of discoveries every year, innovation being at the center of our society. In consequence, I decided to study the number of important discoveries each year on a period of 100 years. This period will cover the two world war. It’s important to have an outlook on the past thanks to new technologies, and is interesting to find wich period was prolific for innovation, wich environment was positive for the trend. Remember that the history always repeats herself, so maybe we will glean some interesting information from our graph.
In order to build our graph, we need to collect the data. You can find them on internet, books, just be sure that the source is reliable. Here we are looking for the number of discoveries which have impacted humanity. Then define how many variables you want to add to do your graph.
In this case, we gonna use two variables:
1)Time for year (x)
2)Number of discoveries(y)
At this stage, you have to put the data in a file, but be aware of writing well.
Ex : “1”,1860,5
Now, we must continue this one hundred times to cover the full period, Amen!
I’m kidding I used excel to help me and go faster. But for the number of discoveries no choice to complete one by one.
After this you go back in Rstudio open the files with your data, and start to code in console. This was my code in order to plot :
plot(discoveries, ylab = “Number of important discoveries”,
+ las = 1)
title(main = “discoveries data set”)
This graph shows us that the curve is very volatile. We can deduct that after discoveries, there is a phase focusing on the exploitation. 1885 is the most important date for discoveries, in fact, it’s the hugest pick covering all the period. It was the years of industrialisation, beautiful revolution. Like now we live the years of digitalisation.
A fact wich really catches my attention, from 1885 until the first world war innovation decrease constantly. Wars often are related to a bad economy, and discoveries boost economy, so there is a correlation between discoveries and war. Research and development are the main purposes for a healthier world, we need to invest more and more in this direction, obviously in sector benefit for the humanity and not destructive.
Hitler took power during a period where innovation was quite inexistent. Humanity needs hope, when there is no hope sadly but true people become extremist, discoveries give that precious need and bring stability.
This graph is very useful in order to make correlations, we could also have one longer in order to compare with nowadays. But what is important for a comparison is not to look at the number but at the trend.
If I had more time I’ll add more variables, about each different sector of the discoveries. And I’ll like to compare the impact on the economy of the two biggest economic’s revolution, industrialisation and digitalisation.
BEST REGARDS, BE READY FOR A NEW POST VERY SOON!!!