Size of Pie chart is very small
# Clear R workspace
rm(list = ls() )

# Declare a variable to read and store moviesData
movies <- read.csv("moviesData.csv")

# View the stored data frame
View(movies)

# View the dimension of the data frame
dim(movies)
hist(movies$runtime)
hist(movies$runtime,
     main = "Distribution of movies' length ",
     xlab = "Runtime of movies",
     xlim = c(0,300),
     col = "blue",
     breaks = 4)
genreCount <- table(movies$genre)
View(genreCount)
pie(genreCount)
pie(genreCount,
    main = "proportion of movies' genre",
    border = "blue",
    col = "orange")
The above is my code and I am getting  a pie chart which js very small

R Plotting-Histograms-and-Pie-Chart 07-08 min 20-30 sec 29-01-21, 11:53 a.m. safan

Answers:

In pie() , use radius function, 
Eg:: in your case,
pie(genreCount, radius=1)
You can change the radius size according to your preference
29-01-21, 12:34 p.m. Abhijeet2001
Thanks a lot, it worked.
29-01-21, 1:59 p.m. safan


Click here to reply/comment online