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

相关文章
|
1月前
|
算法 编译器 C++
【C++篇】领略模板编程的进阶之美:参数巧思与编译的智慧
【C++篇】领略模板编程的进阶之美:参数巧思与编译的智慧
75 2
|
2月前
|
程序员 开发者
编程之路:从代码中寻找人生哲理
【9月更文挑战第3天】在编程的世界里,每一行代码都承载着程序员的智慧和汗水。本文将通过分享个人的技术感悟,探讨如何在编程过程中找到人生的启示。我们将一起回顾那些令人难忘的编程时刻,以及它们如何影响了我们的思考方式和生活态度。无论你是编程新手还是资深开发者,这篇文章都将带你领略编程的魅力,并从中汲取人生的智慧。
|
5月前
|
机器学习/深度学习 人工智能 数据挖掘
代码之旅:探索编程世界的无限可能
在数字时代的浪潮中,编程技术成为连接现实与虚拟的桥梁。本文将通过个人的技术感悟,探讨编程如何改变世界,提升个人能力,并预测未来技术的发展趋势。我们将一起揭开代码的神秘面纱,体验编程带来的创造乐趣和挑战。
|
存储 机器学习/深度学习 搜索推荐
韵动代码:C++数组实践与应用之路 1
韵动代码:C++数组实践与应用之路
|
存储 算法 C++
韵动代码:C++数组实践与应用之路2
韵动代码:C++数组实践与应用之路
|
机器学习/深度学习
编程之路_R
编程之路_R
|
索引
编程之路_R(5)
编程之路_R(5)
下一篇
无影云桌面