You are on page 1of 12

ANALYSIS OF MOVIE

DATABASE USING
GGPLOT

PAVAN KUMAR G R
1DS20BA068
APPLYING AESTHETICS
Empty Graph: Blank graph sheet with x axis Scatter Plot with colour as genre: Graph with the
and y axis as Rotten Tomatoes rating and allotment of points according to the genre of the
Audience ratings respectively movies which had got the rating of Rotten Tomatoes
and ratings of audience.
APPLYING AESTHETICS
Scatter plot with colour as genre and size of dots Scatter plot along with line chart: Graph with the
as budget showing the scatter plot of genre and allotment of points according to the genre of the
budget along the X and Y axis. movies which had got the rating of Rotten Tomatoes
and ratings of audience.
HISTOGRAM

Histogram: It represents the budget required for each genre. The x axis represents the
budget and y axis the no. of count (genre) and the coloured area represent the genre the
movie belongs to.
DENSITY CHART

It represents the budget required for each genre. The x axis represents the budget and y axis
the no. of count (genre) and the coloured area represent the genre the movie belongs to. The
graph indicates the same data but represented using density chart.
STATISTICAL TRANSFORMATION

Geom-smooth and scatter plot: The graph represent which genre has got what ratings i.e.,
whether rotten tomatoes are more or audience rating is more.
BOX PLOT

Box plot with Geom-jitter: The graph indicates the box plot of the genre along the rotten
tomato ratings.
FACETS
Horizontal Facets: It depicts the amount of budget
Vertical Facets: It depicts the amount of budget used by each genre and the count of genre side by
used by each genre and the count of genre. side.
FACET GRID

The data represents what is the budget used by each genre in every year and the rotten and
audience rating for each genre.
ZOOMING THE DATA
The zooming of the data means only required range of data is graphed i.e., in this case the count of
number of genres is limited to 65 so only up to 65 count is zoomed and there is no data loss. The same
can be done using facets.
ADDING THEME TO THE DATA

The theme to the graph is applied by assigning the base, geometric and aesthetic layer to a
variable “P” and then adding different themes to that variable, Such as x and y title’s colour
and size, scale position etc.
THANK YOU

You might also like