Raphael Cóbe
22/12/2015
As response, a plot with the distribution of movies over the years is generated
imdb <- filterByGender(NULL,imdb)
selectedDataset <- aggregate(imdb$Count, by = list(year = imdb$year), FUN = sum)
filteredData <- filter(selectedDataset, year > minDate & year < maxDate)
plot <- nPlot(x ~ year, data = filteredData, type = "multiBarChart")
plot$show('inline', include_assets = TRUE, cdn = TRUE)
The third tab show a chart that compares the growth on budget compared with the average movies rating:
h <- Highcharts$new()
h$xAxis(categories = filteredData$year, tickInterval=5, width=480)
h$yAxis(list(list(title = list(text = 'Budget'))
, list(title = list(text = 'Ratings'), opposite = TRUE))
)
h$series(name = 'Budget', type = 'spline', data = filteredData$x)
h$series(name = 'Ratings', type = 'spline', data = filteredData$rating,
yAxis = 1)
h$show('inline', cdn = TRUE, include_assets = TRUE)