movies | R Documentation |
A dataset with information about movies released in 2003.
movies
A data frame with 140 observations on the following 5 variables.
Title of the movie.
Genre of the movie.
Critics score of the movie on a 0 to 100 scale.
MPAA rating of the film.
Millions of dollars earned at the box office in the US and Canada.
Investigating Statistical Concepts, Applications and Methods
library(ggplot2)
ggplot(movies, aes(score, box_office, color = genre)) +
geom_point() +
theme_minimal() +
labs(
title = "Does a critic score predict box office earnings?",
x = "Critic rating",
y = "Box office earnings (millions US$",
color = "Genre"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.