R编程之路_常用参数

简介: R编程之路_常用参数

Generating Random Numbers:
rnorm: generate random Normal variates with a given mean and standard deviation
dnorm: evaluate the Normal probability density(with a given mean/SD) at apoint(or vector of points)
pnorm: evaluate the cumulative distribution function for a Normal distribution
rpois: generate random Poisson variates with a given rate
set.seed: reproducibility
sample: used to draw random samples from arbitrary vectors

distributionfunctions prefix:
d for density
密度分步
r for random number generation
随机数生成
p for cumulative distribution
累积分步
q for quantile function
分位数

SomeImportant Base Graphics Parameters:
pch: the plotting symbol
lty: the line type
lwd: the line width
col: the plotting color
las: the orientation of the axis labels on the plot
bg: the background color
mar: the margin size
oma: the outer margin size
mfrow: number of plots per row,column(plots are filled row-wise)
nfcol: number of plots per row,column(plots are filled column-wise)

SomeImportant Base Plotting Functions:
plot: make a scatterplot, or othe type of plot depending on the class of theobject being plotted
lines: add lines to a plot, given a vector x values and a corresponding vectorof y values(or a 2-column matrix); this funcion just connects the dots
points: add points to a plot
text: add text labels to a plot using specified x, y coordinates
title: add annotations to x, y axis labels, title, subtitle, outer margin
mtext: add arbitrary text to the margins(inner or outer) of the plot
axis: add axis ticks/labels

LatticeFunctions:
xyplot: this is the main function for creating scatterplots
bwplot: box-and-whiskers plots("boxplots")
histogram: histograms
stripplot: like a boxplot but with actual points
dotplot: plot dots on "violon strings"
splom: scatterplot matrix; like pairs in base graphics system
levelplot, contourplot: for plotting "image" data

相关文章
|
4天前
|
JavaScript 编译器 API
【C++ 函数和过程 进阶篇】全面掌握C++函数返回值:从入门到精通的实战指南
【C++ 函数和过程 进阶篇】全面掌握C++函数返回值:从入门到精通的实战指南
81 1
|
7月前
|
存储 自然语言处理 程序员
程序员进阶之路:程序环境和预处理(一)
程序员进阶之路:程序环境和预处理(一)
37 0
|
11月前
|
Python
谈一谈|如何利用函数的各种参数
谈一谈|如何利用函数的各种参数
57 0
|
11月前
|
JavaScript 前端开发 C语言
聊一聊编程中的函数
聊一聊编程中的函数
56 0
|
11月前
R编程之路_函数参数
R编程之路_函数参数
|
11月前
R编程之路(4)
R编程之路(4)
|
11月前
编程之路_R(3)
编程之路_R(3)
|
11月前
|
机器学习/深度学习
编程之路_R
编程之路_R
|
11月前
|
索引
编程之路_R(5)
编程之路_R(5)
|
11月前
编程之路_R(2)
编程之路_R(2)