8341 1

[学习分享] R语言绘图( 使用expression和bquote函数在图上添加复杂的数学方程和符号) [推广有奖]

  • 5关注
  • 8粉丝

已卖:376份资源

博士生

38%

还不是VIP/贵宾

-

威望
0
论坛币
3141 个
通用积分
73.8548
学术水平
37 点
热心指数
36 点
信用等级
23 点
经验
33667 点
帖子
298
精华
0
在线时间
141 小时
注册时间
2012-11-23
最后登录
2022-9-18

楼主
奇渥温·沙加 发表于 2016-11-14 09:12:20 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Syntax(在绘图语言中添加)Meaning(含义)
x + yx plus y
x - yx minus y
x*yjuxtapose x and y
x/yx forwardslash y
x %+-% yx plus or minus y
x %/% yx divided by y
x %*% yx times y
x %.% yx cdot y
xx subscript i
x^2x superscript 2
paste(x, y, z)juxtapose x, y, and z
sqrt(x)square root of x
sqrt(x, y)yth root of x
x == yx equals y
x != yx is not equal to y
x < yx is less than y
x <= yx is less than or equal to y
x > yx is greater than y
x >= yx is greater than or equal to y
x %~~% yx is approximately equal to y
x %=~% yx and y are congruent
x %==% yx is defined as y
x %prop% yx is proportional to y
x %~% yx is distributed as y
plain(x)draw x in normal font
bold(x)draw x in bold font
italic(x)draw x in italic font
bolditalic(x)draw x in bolditalic font
symbol(x)draw x in symbol font
list(x, y, z)comma-separated list
...ellipsis (height varies)
cdotsellipsis (vertically centred)
ldotsellipsis (at baseline)
x %subset% yx is a proper subset of y
x %subseteq% yx is a subset of y
x %notsubset% yx is not a subset of y
x %supset% yx is a proper superset of y
x %supseteq% yx is a superset of y
x %in% yx is an element of y
x %notin% yx is not an element of y
hat(x)x with a circumflex
tilde(x)x with a tilde
dot(x)x with a dot
ring(x)x with a ring
bar(xy)xy with bar
widehat(xy)xy with a wide circumflex
widetilde(xy)xy with a wide tilde
x %<->% yx double-arrow y
x %->% yx right-arrow y
x %<-% yx left-arrow y
x %up% yx up-arrow y
x %down% yx down-arrow y
x %<=>% yx is equivalent to y
x %=>% yx implies y
x %<=% yy implies x
x %dblup% yx double-up-arrow y
x %dbldown% yx double-down-arrow y
alpha -- omegaGreek symbols
Alpha -- Omegauppercase Greek symbols
theta1, phi1, sigma1, omega1cursive Greek symbols
Upsilon1capital upsilon with hook
alephfirst letter of Hebrew alphabet
infinityinfinity symbol
partialdiffpartial differential symbol
nablanabla, gradient symbol
32*degree32 degrees
60*minute60 minutes of angle
30*second30 seconds of angle
displaystyle(x)draw x in normal size (extra spacing)
textstyle(x)draw x in normal size
scriptstyle(x)draw x in small size
scriptscriptstyle(x)draw x in very small size
underline(x)draw x underlined
x ~~ yput extra space between x and y
x + phantom(0) + yleave gap for "0", but don't draw it
x + over(1, phantom(0))leave vertical gap for "0" (don't draw)
frac(x, y)x over y
over(x, y)x over y
atop(x, y)x over y (no horizontal bar)
sum(x, i==1, n)sum x for i equals 1 to n
prod(plain(P)(X==x), x)product of P(X=x) for all values of x
integral(f(x)*dx, a, b)definite integral of f(x) wrt x
union(A, i==1, n)union of A for i equals 1 to n
intersect(A, i==1, n)intersection of A
lim(f(x), x %->% 0)limit of f(x) as x tends to 0
min(g(x), x > 0)minimum of g(x) for x greater than 0
inf(S)infimum of S
sup(S)supremum of S
x^y + znormal operator precedence
x^(y + z)visible grouping of operands
x^{y + z}invisible grouping of operands
group("(",list(a, b),"]")specify left and right delimiters
bgroup("(",atop(x,y),")")use scalable delimiters
group(lceil, x, rceil)special delimiters
group(lfloor, x, rfloor)special delimiters

The supported ‘scalable delimiters’ are | ( [ {, lceil, lfloor and their right-hand versions. "." is equivalent to "": the corresponding delimiter will be omitted. Delimiter || is supported but has the same effect as

范例:

> plot(x=0,y=0,xlim=c(0,1),ylim=c(0,15),type="n")

> curve(100*(x^3-x^2)+15,from=0,to=1,xlab=expression(alpha),ylab=expression(100%*%(alpha^3-alpha^2)+15),main=expression(paste("Function:",f(alpha)==100%*%(alpha^3-alpha^2)+15)))

> par(usr=c(0,1,0,1))

> text(0.1,0.1,bquote(sigma[alpha]==.(0.25)),cex=1.25)


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Expression express Xpress Quote Press equals 数学

已有 1 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
我的素质低 + 100 + 10 + 2 + 2 + 2 精彩帖子

总评分: 经验 + 100  论坛币 + 10  学术水平 + 2  热心指数 + 2  信用等级 + 2   查看全部评分

沙发
奇渥温·沙加 发表于 2016-11-14 09:19:52

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 01:47