logo
  • 教程列表
  • SO官方文档
  • R memento 通过例子
    • 绘图(使用图)
    • 常用功能
    • 数据类型
  1. StackOverflow 文档
  2. R Language 教程
  3. R memento 通过例子
  4. 绘图(使用图)

绘图(使用图)

Created: November-22, 2018

# Creates a 1 row - 2 columns format
par(mfrow=c(1,2))

plot(rnorm(100), main = "Graph 1", ylab = "Normal distribution")
grid()
legend(x = 40, y = -1, legend = "A legend")

plot(rnorm(100), main = "Graph 2", type = "l")
abline(v = 50)

结果: https://i.stack.imgur.com/UOTw4.jpg

  • 常用功能
  • R memento 通过例子

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明