R语言使用plot函数可视化数据散点图,使用par函数中的bg参数自定义设置可视化整个图像画板背景色 您所在的位置:网站首页 散点图手绘 R语言使用plot函数可视化数据散点图,使用par函数中的bg参数自定义设置可视化整个图像画板背景色

R语言使用plot函数可视化数据散点图,使用par函数中的bg参数自定义设置可视化整个图像画板背景色

#R语言使用plot函数可视化数据散点图,使用par函数中的bg参数自定义设置可视化整个图像画板背景色| 来源: 网络整理| 查看: 265

R语言使用plot函数可视化数据散点图,使用par函数中的bg参数自定义设置可视化整个图像画板背景色

R 是一个有着统计分析功能及强大作图功能的软件系统,是由奥克兰大学统计学系的Ross Ihaka 和 Robert Gentleman 共同创立。由于R 受Becker, Chambers & Wilks 创立的S 和Sussman 的Scheme 两种语言的影响,所以R 看起来和S 语言非常相似。

R语言被称作R的部分是因为两位R 的作者(Robert Gentleman 和Ross Ihaka) 的姓名,部分是受到了贝尔实验室S 语言的影响(称其为S 语言的方言)。

R 语言是为数学研究工作者设计的一种数学编程语言,主要用于统计分析、绘图、数据挖掘。

R语言原生plot函数能够满足基础可视化的绝大部分功能;

​编辑

Function and argumentsOutput plotplot(x, y)数值向量的散点图、Scatterplot of x and y numeric vectorsplot(factor)因子变量的柱状图、Barplot of the factorplot(factor, y)数据变量的箱图;Boxplot of the numeric vector and the levels of the factorplot(time_series)时间序列图、Time series plotplot(data_frame)dataframe中数据的相关性图;Correlation plot of all dataframe columns (more than two columns)plot(date, y)可视化日期向量;Plots a date-based vectorplot(function, lower, upper)可视化函数的曲线;Plot of the function between the lower and maximum value specified

plot函数中type参数的常用值;

Plot typeDescriptionp数据点;Points plot (default)l线图;Line plotb点和线;Both (points and line)o点和线、连接起来的;Both (overplotted)s阶梯;Stairs ploth类似直方图;Histogram-like plotn不显示;No plotting

仿真数据​ set.seed(123) # Generate sample data x


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有