2020.4.24am R学习笔记

  1. 遇到“+”时式子没写完,如果无法继续完成,可在console中输入;以结束,Ctrl+L清屏无法结束。

  2. barplot(height = , names = , col = )

  3. $无法对矩阵进行提取,只能用于数据框。

  4. base R plot:
    lty : line type;
    pch : marker shape;
    lwd : line width;
    type : line between dots type;
    cex : shape size;
    col : control colors.
    margin
    mar()for margin, oma()for outer margin erea.
    eg. par(oma=c(3,3,3,3)) par(mar=c(5,4,4,2) + 0.1) plot(0:10, 0:10, xlab= "X", ylab= "Y", type= "n") # type="n"hide the points text(5, 5, "plot", cex=2, col="red") box(col="red") ... box("figure", col="forestgreen") ... box("outer", col="blue")

           `las`allows to change the orientation of axis labels. (0, 1, 2, 3)
    
发布了3 篇原创文章 · 获赞 0 · 访问量 38

猜你喜欢

转载自blog.csdn.net/m0_46641191/article/details/105722941
am