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

相关文章
|
存储 关系型数据库 MySQL
mysql主键varchar(255)报错
varchar定义的长度的单位是字符。 utf8mb4 字符集下, 一些特殊字符会占用 4 个字节, 你设置长度 255, 则占用字节为 255 * 4 = 1020 byte 而mysql 的主键最大长度貌似不能超过 767 byte 1、限制规则 字段的限制在字段定义的时候有以下规则: a) 存储限制 varchar 字段是将实际内容单独存储在聚簇索引之外,内容开头用1到2个字节表示实际长度(长度超过255时需要2个字节),因此最大长度不能超过65535。
3075 0
|
1天前
|
人工智能 JSON 机器人
让龙虾成为你的“公众号分身” | 阿里云服务器玩Openclaw
本文带你零成本玩转OpenClaw:学生认证白嫖6个月阿里云服务器,手把手配置飞书机器人、接入免费/高性价比AI模型(NVIDIA/通义),并打造微信公众号“全自动分身”——实时抓热榜、AI选题拆解、一键发布草稿,5分钟完成热点→文章全流程!
10100 24
让龙虾成为你的“公众号分身” | 阿里云服务器玩Openclaw
|
13天前
|
人工智能 安全 Linux
【OpenClaw保姆级图文教程】阿里云/本地部署集成模型Ollama/Qwen3.5/百炼 API 步骤流程及避坑指南
2026年,AI代理工具的部署逻辑已从“单一云端依赖”转向“云端+本地双轨模式”。OpenClaw(曾用名Clawdbot)作为开源AI代理框架,既支持对接阿里云百炼等云端免费API,也能通过Ollama部署本地大模型,完美解决两类核心需求:一是担心云端API泄露核心数据的隐私安全诉求;二是频繁调用导致token消耗过高的成本控制需求。
5831 14
|
21天前
|
人工智能 JavaScript Ubuntu
5分钟上手龙虾AI!OpenClaw部署(阿里云+本地)+ 免费多模型配置保姆级教程(MiniMax、Claude、阿里云百炼)
OpenClaw(昵称“龙虾AI”)作为2026年热门的开源个人AI助手,由PSPDFKit创始人Peter Steinberger开发,核心优势在于“真正执行任务”——不仅能聊天互动,还能自动处理邮件、管理日程、订机票、写代码等,且所有数据本地处理,隐私完全可控。它支持接入MiniMax、Claude、GPT等多类大模型,兼容微信、Telegram、飞书等主流聊天工具,搭配100+可扩展技能,成为兼顾实用性与隐私性的AI工具首选。
22771 119

热门文章

最新文章