movies: movies

moviesR Documentation

movies

Description

A dataset with information about movies released in 2003.

Usage

movies

Format

A data frame with 140 observations on the following 5 variables.

movie

Title of the movie.

genre

Genre of the movie.

score

Critics score of the movie on a 0 to 100 scale.

rating

MPAA rating of the film.

box_office

Millions of dollars earned at the box office in the US and Canada.

Source

Investigating Statistical Concepts, Applications and Methods

Examples


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"
  )


openintro documentation built on June 22, 2024, 7:37 p.m.