Learn R Programming

moderndive (version 0.4.0)

movies_sample: Random sample of 68 action and romance movies

Description

A random sample of 32 action movies and 36 romance movies from https://www.imdb.com/ and their ratings.

Usage

movies_sample

Arguments

Format

A data frame of 68 rows movies.

title

Movie title

year

Year released

rating

IMDb rating out of 10 stars

genre

Action or Romance

See Also

This data was sampled from the `movies` data frame in movies.

Examples

Run this code
# NOT RUN {
library(ggplot2)

# Visualize relationship between rating and genre
ggplot(data = movies_sample, aes(x = genre, y = rating)) +
  geom_boxplot() +
  labs(x = "Genre: Action or Romance", y = "IMDb rating")
# }

Run the code above in your browser using DataLab