全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1323 1
2018-06-08
Generic X-Y Plottingusageplot(x, y, ...)Arguments
x

the coordinates of points in the plot. Alternatively, a single plotting structure, function or any R object with a plot method can be provided.(可简单理解为x轴上的数据,在R中通常为向量)

y

the y coordinates of points in the plot, optional if x is an appropriate structure.(可简单理解为y轴上的数据,在R上通常为向量)

...

type

what type of plot should be drawn. Possible types are

  • "p" for points(点),

  • "l" for lines(线),

  • "b" for both(点之间用线连接),

  • "c" for the lines part alone of "b"(b中仅保留线),

  • "o" for both ‘overplotted’(用线串接点),

  • "h" for ‘histogram’ like (or ‘high-density’) vertical lines(垂直于x轴的线),

  • "s" for stair steps(x-y阶梯图),

  • "S" for other steps, see ‘Details’ below(y-x阶梯图),

  • "n" for no plotting(无图形,仅存坐标轴).


All other types give a warning or an error; using, e.g., type = "punkte" being equivalent to type = "p" for S compatibility. Note that some methods, e.g. plot.factor, do not accept this.

main

an overall title for the plot: see title.

sub

a sub title for the plot: see title.

xlab

a title for the x axis: see title.

ylab

a title for the y axis: see title.

asp

the y/x aspect ratio, see plot.window.


例子对比:





37CAEA42-D862-45EA-9EB9-66FEADDDC95D.png
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2018-6-9 05:23:18
thanks for sharing
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群