Best Movies from 2006-2016

Between 2006 and 2016, the film industry saw a surge of memorable blockbusters, critically acclaimed dramas, and fan-favorite franchises. This top 10 list highlights some of the most notable and influential movies released during that decade.

This is an analysis of movies categorized in the following genres:

## Rows: 787
## Columns: 8
## $ Title       <chr> "Guardians of the Galaxy", "Prometheus", "Sing", "Suicide …
## $ Genre       <chr> "Action", "Adventure", "Animation", "Action", "Action", "C…
## $ Description <chr> "A group of intergalactic criminals are forced to work tog…
## $ Director    <chr> "James Gunn", "Ridley Scott", "Christophe Lourdelet", "Dav…
## $ Actors      <chr> "Chris Pratt, Vin Diesel, Bradley Cooper, Zoe Saldana", "N…
## $ Year        <int> 2014, 2012, 2016, 2016, 2016, 2016, 2016, 2016, 2016, 2016…
## $ Runtime     <int> 121, 124, 108, 123, 103, 128, 89, 141, 116, 133, 133, 107,…
## $ Rating      <dbl> 8.1, 7.0, 7.2, 6.2, 6.1, 8.3, 6.4, 7.1, 7.0, 7.5, 7.9, 7.7…

How many movies were in each category?

library(ggplot2)

#Create the bar plot
ggplot(selected_movies, aes(x = Genre)) +
  geom_bar() +
  labs(
    title = "Number of Movies by Genre",
    x = "Genre",
    y = "Count of Movies"
  )

ggplot(selected_movies, aes(x = Rating, y = Runtime, color = Genre)) +
  geom_point() +
  labs(
    title = "Rating vs Runtime",
    x = "Rating", 
    y = "Runtime (in minutes)"
  )