alperyilmaz / dav-exercises

Exercise questions submitted by Data Analysis and Visualization with R course students at YTU
GNU General Public License v3.0
1 stars 2 forks source link

Discoveries #103

Open serappfd opened 6 years ago

serappfd commented 6 years ago

Question

The number of discoveries between 1860 and 1959 was given. Please, find out which year is the most discovery, and find out over five discoveries in descending order and show them on the chart.

image

time discoveries
1  1885          12
2  1887          10
3   ...             
library(ggplot2)
library(readr)
library(dplyr)
claridge <- read.csv("https://raw.githubusercontent.com/vincentarelbundock/Rdatasets/master/csv/datasets/discoveries.csv") 
claridge %>%
  select(time, discoveries) %>%
  arrange(desc(discoveries)) %>%
  filter(discoveries > 5)  %>%
  ggplot(aes(x = time, y = discoveries, fill=time)) +
  geom_col()

Additional information

Originality

Is this question

Difficulty Level

Tags (optional)

ggplot2, dplyr, readr