what does the argument border = blue mean
# Clear R workspacerm(list = ls() )# Declare a variable to read and store moviesDatamovies <- read.csv("moviesData.csv")# View the stored data frameView(movies)# View the dimension of the data framedim(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
Sometimes "view" function does not work properly then I rewrite the command and check with print function then view function works properly but in today's workshop, I have used again command "view" function but function shows the error as :genreCount <- table(movies$genre)> view(genreCount)Error in view(genreCount): could not find function "view"apart from that, I am using R 4.0.1 is this the problem?
What is this argument define and when it is used ?na.rm = TRUEna.rm = FALSE
In plotting histogram, the following error Error in plot.new() : figure margins too large
pie(genrecount, main="properties of movies' genre", border="blue", col="orange")the above code changes the entire color of the pie chart to orange .my question is,how to change the color of each wedges in a pie chart ?
Dear sir/madam,how to download moviesData.csv dataframeThankyou
Dear Sir/Madam,How to customize the heights of the bin in hist()?Thank you.
How to plot 3-D pie chart please give any example with Dataset or table give me a brief description.
How can I make the pie chart with the different colors for different proportions? Is there any parameter I have to set for different colors?
14555 visits
Outline:How to find the dimensions of a data frame Define a histogram Plot a histogram in R Add labels to the histogram Add color to the bins of a histogram Change the number of breaks in the histogram Define a pie chart Plotting a pie chart in R Add a label to the pie chart Saving the plot as an image
How to find the dimensions of a data frame Define a histogram Plot a histogram in R Add labels to the histogram Add color to the bins of a histogram Change the number of breaks in the histogram Define a pie chart Plotting a pie chart in R Add a label to the pie chart Saving the plot as an image
Show video info
Pre-requisite