Module 5Box, Dot, Histogram, Strip Charts
Do
See & Hear
Read
Learn
PowerPoint must be in View Show Mode to
See videos and hyperlinks
D Kelly O'Day
1
Box, Dot, Histogram , Strip Charts
Module 5Box, Dot, Histogram, Strip Charts
Do
See & Hear
Read
Learn
D Kelly O'Day
2
Box, Dot, Histogram , Strip Charts
Making Box, Dot, Histogram, Strip Charts
Click video image to start video
D Kelly O'Day
3
Box, Dot, Histogram , Strip Charts
Overview of R ChartingHigh Level Plot Functions Arguments
Menu
Type
R function()
Bar Chart
barplot()
Box & Whisker Plot
boxplot()
Dot Plot
dotchartt()
Histogram
hist()
Scatter Plot
plot()
Strip Chart
stripchart()
High Level Function Arguments
type=
type = “p”– individual points
type = “l”– line
type = “b”– points connected with lines
type = “h”– vertical lines from 0
type = “s”– step chart
xlab = ““
ylab = ““
X and Y axis titles
main = ““
sub = ““
Figure title top of plot, large font
Sub title – below X axis, smaller font
axes = Tor F
Set to F when you want custom axis
plete chart
D Kelly O'Day
4
Box, Dot, Histogram , Strip Charts
Module 5 Box, Dot, Histogram, Strip ChartsMenu
Box Plot
Dot Plot
Histogram
Strip Chart
D Kelly O'Day
5
Box, Dot, Histogram , Strip Charts
Making a Box & Whisker Plot withboxplot() Function
Menu
boxplot( ~ Species, data = my_data, col = "grey", horizontal = FALSE, par(cex = ),whisklty=1, outline = TRUE, boxcol = "grey", boxwex = , border = "darkgrey", pch = 16, outcol = "red", main = Title)
"","","","","Species",,,,"setosa“,3,,,"setosa“,,,,"setosa“,,,,"setosa“5,,,,"setosa“,,,,"setosa"
boxplot()
boxplot(?? ~ ??, data = ??, col = “??", horizontal = ??, par(cex = 0.??),whisklty=??, outline = ??, boxcol = “??", boxwex = ??, border = “??", pch = ??, outcol = “??, main = ??)
Data File: C:\\Learn_R\\Mod_4_R_Charts\\
learn r 5 box dot hist charts 来自淘豆网m.daumloan.com转载请标明出处.