Skip to content

Instantly share code, notes, and snippets.

View sonamgupta1105's full-sized avatar

Sonam Gupta sonamgupta1105

View GitHub Profile
# All the visualizations are for Title.type = Feature Films. I have used the same packages as mentioned in the example you had given.
library(ggplot2)
library(dplyr)
movie_data <- read.csv("movie_data.csv")
#creating the movies dataframe
dfMoviesFeatureFilm <- subset(movie_data, movie_data$Title.type == "Feature Film")
#Vis1 that plots imdb-ratings for feature films excluding the missing values
dfMoviesFeatureFilmRating <- subset(dfMoviesFeatureFilm, dfMoviesFeatureFilm$IMDb.Rating != "")