Plotting Histograms and Pie Chart - English
- subtitles off
- captions off
- English
- Questions posted on Forums
- R Tutorials - English
-
border
what does the argument border = blue mean
08-09M 0-10S kinshuk02
Answer last updated on: Aug. 28, 2021, 9:41 p.m.
-
Size of Pie chart is very small
# 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
07-08M 20-30S safan
Answer last updated on: Jan. 29, 2021, 12:34 p.m.
-
View function is not working
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?
06-07M 30-40S shiksha_saxena
Answer last updated on: June 18, 2020, 10:44 p.m.
-
Argument work
What is this argument define and when it is used ?na.rm = TRUEna.rm = FALSE
11-12M 50-60S mzaid
Answer last updated on: May 18, 2020, 6:09 p.m.
-
Plot Error
In plotting histogram, the following error Error in plot.new() : figure margins too large
03-04M 20-30S yogitachitriv@yahoo.com
Answer last updated on: May 9, 2020, 11:33 p.m.
-
how to change the color of each wedges in a pie chart
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 ?
07-08M 50-60S suhailalphacs
Answer last updated on: May 5, 2020, 9:50 p.m.
-
Doubt on dataframe
Dear sir/madam,how to download moviesData.csv dataframeThankyou
02-03M 10-20S GeethaSadayan1972
Answer last updated on: May 1, 2020, 4:10 p.m.
-
Customizing the Heights of Bins in Hist
Dear Sir/Madam,How to customize the heights of the bin in hist()?Thank you.
04-05M 20-30S pnkshan
Answer last updated on: April 28, 2020, 9:02 p.m.
-
How to plot 3-D pie chart
How to plot 3-D pie chart please give any example with Dataset or table give me a brief description.
03-04M 20-30S kamleshpatidar
Answer last updated on: Nov. 9, 2019, 2:37 p.m.
-
Regarding Plotting Pie Chart
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?
08-09M 20-30S anisainosoft
Answer last updated on: Nov. 9, 2019, 12:21 p.m.
-
1Overview of R and RStudio
-
2Installing R and RStudio on Linux
-
3Installing R and RStudio on Windows
-
4Introduction to basics of R
-
5Introduction to Data Frames in R
-
6Introduction to RStudio
-
7Introduction to R script
-
8Working directories in RStudio
-
9Indexing and Slicing Data Frames
-
10Creating Matrices using Data Frames
-
11Operations on Matrices and Data Frames
-
12Merging and Importing Data
-
13Data types and Factors
-
14Lists and its Operations
-
Plotting Histograms and Pie Chart
-
16Plotting Bar Charts and Scatter Plot
-
17Introduction to ggplot2
-
18Aesthetic Mapping in ggplot2
-
19Data Manipulation using dplyr Package
-
20More Functions in dplyr Package
-
21Pipe Operator
-
22Conditional Statements
-
23Functions in R
Questions posted on ST Forums:
15098 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
Width: | 906 | Height: | 636 |
---|---|---|---|
Duration: | 00:11:48 | Size: | 6.2 MB |
Show video info