Whem the movies were released?
Number of Movies released each year
n <- netflix %>% group_by(Year) %>% summarise(total=n())
n_graph <- ggplot(data=n)+
geom_col(mapping=aes(
x=Year,
y=total,
fill=ifelse(total==max(total),"red","grey"))
)+
labs(title="Netflix Movies released each year")+
theme_minimal()+
scale_fill_manual(values=c("#2d2d2d","#E50914"))+
theme(
legend.position="none",
plot.title=element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x = element_blank(),
axis.title.y = element_blank(),
panel.grid.major.x = element_blank(),
panel.grid.minor = element_blank()
)
n_graph

Number of Movies released each month
n1 <- netflix %>% group_by(Month) %>% summarise(total=n())
n1_graph <- ggplot(data=n1)+
geom_col(mapping = aes(
x=Month,
y=total,
fill=ifelse(total==max(total),"red","grey")))+
labs(title='Netflix Movies Released Each Month')+
theme_minimal()+
scale_fill_manual(values=c("#2d2d2d","#E50914"))+
theme(
legend.position='none',
plot.title = element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x = element_blank(),
panel.grid.minor = element_blank(),
text = element_text(size=20))
n1_graph

Number of movies released by date of the month
n2 <- netflix %>% group_by(Date) %>% summarise(total=n())
n2_graph <- ggplot(data=n2)+
geom_col(mapping=aes(x=Date, y=total,
fill=ifelse(total==max(total),"red","grey")))+
labs(
title="Netflix Movies released by date of each month")+
theme_minimal()+
scale_fill_manual(values = c("#2d2d2d","#E50914"))+
theme(
legend.position="none",
plot.title=element_text(
family="Bebas Neue",
size=25,
color="#E50914"
),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank(),
panel.grid.minor = element_blank(),
text=element_text(size=20)
)
n2_graph

Number of movies releaes each day of the week
n3 <- netflix %>% group_by(Day) %>% summarise(total=n())
n3_graph <-
ggplot(data=n3)+
geom_col(mapping=aes(
x=Day,
y=total,
fill=ifelse(total==max(total),"red","black")))+
labs(title="Netflix Movies released by day of the week")+
theme_minimal()+
scale_fill_manual(values=c("#2d2d2d","#E50914"))+
theme(
legend.position="none",
plot.title = element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank(),
panel.grid.minor=element_blank(),
text=element_text(size=20)
)
n3_graph

5 Most popular Genres
n4 <- netflix %>% group_by(Genre) %>%
summarise(Movies=n()) %>%
arrange(desc(Movies)) %>%
head(5)
n4_graph <-
ggplot(data=n4)+
geom_col(mapping = aes(
x=reorder(Genre, -Movies),
y=Movies,
fill=ifelse(Movies == max(Movies),"red","black")))+
labs(title="Most Popular Genres")+
theme_minimal()+
scale_fill_manual(values = c("#2d2d2d","#E50914"))+
theme(
legend.position="none",
plot.title = element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank(),
panel.grid.minor = element_blank(),
text = element_text(size=20)
)
n4_graph

5 Most Popular Languages
n5 <- netflix %>%
group_by(Language) %>%
summarise(Movies=n()) %>%
arrange(desc(Movies)) %>%
head(5)
n5_graph <-
ggplot(data=n5)+
geom_col(mapping=aes(
x=reorder(Language, -Movies),
y=Movies,
fill=ifelse(Movies == max(Movies),"red","black")))+
labs(title="Most Popular Languages")+
theme_minimal()+
scale_fill_manual(values=c("#2d2d2d","#E50914"))+
theme(
legend.position="none",
plot.title = element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank(),
panel.grid.minor = element_blank(),
title=element_text(size=20)
)
n5_graph

IMDB Scores - How were most movies rated?
n6_graph <- ggplot(netflix)+
geom_dotplot(mapping=aes(x=`IMDB Score`),
binwidth=0.3,fill="#2d2d2d",color="#e9ecef")+
labs(title="IMDB Score Distribution")+
theme_minimal()+
theme(
legend.position="none",
plot.title=element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank()
)
n6_graph

Highest Rated Movies
n7 <- netflix %>% arrange(desc(`IMDB Score`)) %>% head(5)
n7_graph <- ggplot(data=n7)+
geom_col(mapping=aes(
x=reorder(`Title`,`IMDB Score`),
y=`IMDB Score`,
fill=ifelse(
`IMDB Score`==max(`IMDB Score`),
"red","black")))+
labs(title="Highest Rated Movies")+
theme_minimal()+
scale_fill_manual(values = c("#2d2d2d","#E50914"))+
coord_flip()+
theme(
legend.position="none",
plot.title = element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank()
)
n7_graph

Lowest Rated Movies
n8 <- netflix %>% arrange(desc(-`IMDB Score`)) %>% head(5)
n8_graph <- ggplot(data=n8)+
geom_col(mapping=aes(
x=reorder(`Title`, -`IMDB Score`),
y=`IMDB Score`,
fill=ifelse(
`IMDB Score`==min(`IMDB Score`),
"red","black")))+
labs(title="Lowest Rated Movies")+
theme_minimal()+
scale_fill_manual(values = c("#2d2d2d","#E50914"))+
coord_flip()+
theme(
legend.position="none",
plot.title = element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank()
)
n8_graph

Runtime - How long are the movies?
n9_graph <- ggplot(data=netflix)+
geom_dotplot(
mapping=aes(x=Runtime),
binwidth=2.25,
fill="#2d2d2d",
color="#e9ecef")+
labs(title="Movie Runtime")+
theme_minimal()+
theme(
legend.position="none",
plot.title=element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x = element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank()
)
n9_graph

Longest Movies
n10 <- netflix %>% arrange(desc(Runtime)) %>% head(5)
n10_graph <- ggplot(data=n10)+
geom_col(mapping=aes(
x=reorder(`Title`,`Runtime`),
y=`Runtime`,
fill=ifelse(Runtime==max(`Runtime`),"red","black")))+
labs(title="Longest Movies")+
theme_minimal()+
scale_fill_manual(values=c("#2d2d2d","#E50914"))+
coord_flip()+
theme(
legend.position="none",
plot.title = element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank()
)
n10_graph

Shortest Movies
n11 <- netflix %>% arrange(desc(-Runtime)) %>% head(5)
n11_graph <- ggplot(data=n11)+
geom_col(mapping=aes(
x = reorder(`Title`,`Runtime`),
y = `Runtime`,
fill = ifelse(Runtime==min(`Runtime`),"red","black")))+
labs(title="Shortest Movies")+
theme_minimal()+
scale_fill_manual(values = c("#2d2d2d","#E50914"))+
coord_flip()+
theme(
legend.position="none",
plot.title = element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank(),
text=element_text(size=20)
)
n11_graph

Runtime vs IMDB-Score
n12_graph <- ggplot(data=netflix,aes(x = `IMDB Score`, y = Runtime))+
geom_point()+
geom_smooth(method = "lm", color="#E50914")+
labs(title="Runtime vs IMDB Rating")+
theme_minimal()+
scale_fill_manual(values=c("#2d2d2d","#E50914"))+
theme(
legend.position = "none",
plot.title=element_text(
family="Bebas Neue",
size=25,
color="#E50914"),
axis.title.x=element_blank(),
axis.title.y=element_blank(),
panel.grid.major.x=element_blank()
)
n12_graph
## `geom_smooth()` using formula 'y ~ x'
