Question
My code is not working please help. Its not running and not showing diagrams. R studio visualization. # Exercise. #Pleasae analyse dataset movies available after
My code is not working please help. Its not running and not showing diagrams. R studio visualization.
# Exercise. #Pleasae analyse dataset movies available after installing package ggplot2movies # 1. Please visualize main features of this dataset using ggplot2 package # 2. Create chart with few panels characterising 3 most important features of this dataset.
install.packages("ggplot2") library(ggplot2) install.packages("ggplot2movies") library(ggplot2movies) summary(movies) dplyr:: glimpse(movies)
grouped_ggscatterstats ( ## arguments relevant for ggscatterstats data = movies, x = budget, y = rating, grouping.var = mpaa, label.var = title, label.expression = rating < 5 & budget > 80, type = "r", annotation.args = list( title = "Relationship between movie budget and IMDB rating", caption = "Source:www.imdb.com" , plotgrid.args = list(nrow = 3, ncol = 1) ) )
ylab = "Rating on IMDB" ## label for the y-axis label.var = title ## variable to use for labeling data points label.expression = rating < 5 & budget > 100 ## expression for deciding which points to label point.label.args = list(alpha = 0.7, size = 4, color = "grey50") xfill = "#CC79A7" ## fill for marginals on the x-axis yfill = "#009E73" ## fill for marginals on the y-axis title = "Relationship between movie budget and IMDB rating" caption = "Source: www.imdb.com"
ggscatterstats( data = movies, ## data frame from which variables are taken x = budget, ## predictor/independent variable y = rating, ## dependent variable xlab = "Budget (in millions of US dollars)" )
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started