我可以使用以下代码获取 photo11,如何修复我的代码以将 photo1 更改为 photo2?
x = seq(0.5, 0.9, length = 200)
y = dnorm(x,0.7,0.0458)
plot(x, y,type="l",xlab="my_x_lab")
this is a photo1.jpg
this is a photo2.jpg
and ,how to fix my code to change photo2.jpg into photo3.jpg?there are
only two scales(0.7,0.8) in the x_lab.
this is a photo3.jpg
to fix the code to get rid of y
in the y_lab to change photo3.jpg into photo4.jpg?
this is a photo4.jpg.
这样就可以了。xaxt='n', ann=FALSE
删除 x 轴和注释。axis(...)
仅将 x 轴放置在指定点处。mtext()
将把边距文本放在底部轴上。
x <- seq(0.5, 0.9, length = 200)
y <- dnorm(x,0.7,0.0458)
plot(x, y, type="l", xaxt='n', ann=FALSE)
axis(1, at=c(0.7, 0.8))
mtext("my_x_lab", 1, at=0.9, line=2)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)