安裝R語言和RStudio編輯器
RStudio繪圖
1. rnorm
plot.default {graphics}:Draw a scatter plot with decorations such as axes and titles in the active graphics window.
rnorm(n, mean = 0, sd = 1)
n:number of observations. If length(n) > 1, the length is taken to be the number required.
2
boxplot {graphics}:Produce box-and-whisker plot(s) of the given (grouped) values.
iris {datasets}:This famous (Fisher's or Anderson's) iris data set gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of 3 species of iris. The species are Iris setosa, versicolor, and virginica.
iris is a data frame with 150 cases (rows) and 5 variables (columns) named Sepal.Length, Sepal.Width, Petal.Length, Petal.Width, and Species.
R語言基本操作
管理工作目錄
顯示文件列表
加減乘除
賦值
刪除變量