R Presentation

Isis Ibarra
November 18th, 2018

Introduction

The following presentation shows the amount of great inventions and scientific discoveries in each year from 1860 to 1959.

The source of the dataset is The World Almanac and Book of Facts, 1975 Edition, pages 315–318.For more information, please visit the R documentation webpage.

Code

In order to visuallly represent the number of discoveries per year, some coding needs to be done.

library(datasets)
library(ggplot2)
data <- data.frame(numDisc = discoveries, year = seq(1860, 1959))
plot <- ggplot(data, aes(x=data$year, y=data$numDisc)) + 
  labs(title = "Amount of discoveries (1860 - 1959)", x = "year", y = "Frequency") +
  geom_bar(stat = "identity", fill = "steelblue") +
  theme_minimal()

Data Visualization

plot of chunk plot

Thanks!