library(ggplot2)
## Warning: package 'ggplot2' was built under R version 4.3.3
netflix = read.csv("C:/DATA/netflix_titles.csv")
custom_col = c("pink", "purple", "red")
pie = ggplot(netflix, aes(x= "", fill = factor(type))) +
geom_bar(width=1) +
theme(axis.line = element_blank(),
plot.title = element_text(hjust = 0.5, size = 22), panel.background = element_blank()) +
labs(fill = "class",
x = NULL,
y = NULL,
title = "Netflix piechart") +
coord_polar(theta = "y", start = 0)+
scale_fill_manual(values = custom_col)
pie
