Demo entry 6785379

1

   

Submitted by anonymous on Mar 15, 2019 at 08:37
Language: RConsole. Code size: 429 Bytes.

install.packages('lattice')
install.packages('nutshell')
library(nutshell)
library(lattice)


??mtcars()
#1
data(mtcars)
mtcars[1:5,]

#2
histogram(~mpg,data=mtcars,xlab="mpg",ylab="pot",main="mpgzft")
densityplot(~mpg,data=mtcars,plot=FALSE)

#3
xyplot(mpg~wt,data=mtcars,col="black")
#有关系,mpg decreases with wt's increasing


#4
dotplot(mpg~cyl|gear,data=mtcars,plot.point=FALSE,col="black")
??dotplot()

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).