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

相关文章
|
5月前
|
程序员 开发者
编程之路:从代码中寻找人生哲理
【9月更文挑战第3天】在编程的世界里,每一行代码都承载着程序员的智慧和汗水。本文将通过分享个人的技术感悟,探讨如何在编程过程中找到人生的启示。我们将一起回顾那些令人难忘的编程时刻,以及它们如何影响了我们的思考方式和生活态度。无论你是编程新手还是资深开发者,这篇文章都将带你领略编程的魅力,并从中汲取人生的智慧。
|
SQL IDE 前端开发
程序员优秀之路:一起来看下这 97 位”砖家“能给出啥编程的好建议?(3)
本瓜并未逐字逐句翻译,而是取其精要、理解抽象,结合自身进行撰文表达,与各位看官分享。认知好的编程概念,走向优秀~
|
设计模式 缓存 Java
程序员优秀之路:一起来看下这 97 位”砖家“能给出啥编程的好建议?(2)
本瓜并未逐字逐句翻译,而是取其精要、理解抽象,结合自身进行撰文表达,与各位看官分享。认知好的编程概念,走向优秀~
|
IDE 程序员 测试技术
程序员优秀之路:一起来看下这 97 位”砖家“能给出啥编程的好建议?(4)
本瓜并未逐字逐句翻译,而是取其精要、理解抽象,结合自身进行撰文表达,与各位看官分享。认知好的编程概念,走向优秀~
|
设计模式 监控 算法
程序员优秀之路:一起来看下这 97 位”砖家“能给出啥编程的好建议?(5)
本瓜并未逐字逐句翻译,而是取其精要、理解抽象,结合自身进行撰文表达,与各位看官分享。认知好的编程概念,走向优秀~
|
机器人 程序员 编译器
程序员优秀之路:一起来看下这 97 位”砖家“能给出啥编程的好建议?(1)
咱们程序员在接到需求初期,是没办法对整个需求作完全正确评估的!(本瓜以为,由产品需求到技术落地是有着天然的鸿沟的)所以,多数情况下,我们都会在代码迭代过程中面对之前未预想到的问题。
|
算法
算法学习之路|编程团体赛
编程团体赛的规则为:每个参赛队由若干队员组成;所有队员独立比赛;参赛队的成绩为所有队员的成绩和;成绩最高的队获胜。
955 0
|
6月前
|
Java 开发者
Java 核心深度解析:在编程热潮中找到归属感,让你从新手小白迈向高手之路的必备指南
【8月更文挑战第22天】《Java 核心技术深度解析:从入门到精通》引导读者从基础到高级逐步掌握 Java。本书从面向对象的基础语法开始,通过实例讲解类、封装、继承与多态。进一步探讨了异常处理机制,确保程序健壮性。此外,还涵盖了集合框架、多线程及输入输出等关键技术。适合各水平开发者提升技能。
46 2
|
XML 移动开发 JavaScript
JavaScriptDOM编程(基础&进阶)1
JavaScriptDOM编程(基础&进阶)1
77 0
|
JavaScript 前端开发
JavaScriptDOM编程(基础&进阶)2
JavaScriptDOM编程(基础&进阶)2
76 0

热门文章

最新文章