相关疑难解决方法(0)

在情节内绘图

我有情节1

curve(exp(x), from=1, to=5, lwd=5)
curve(150-exp(x), from=1, to=5, lwd=5, col="darkblue",add=T)
Run Code Online (Sandbox Code Playgroud)

在里面我想补充下面的情节2

par(mar=c(7,7,1,1))
curve(exp(x), from=1, to=5, lwd=7, xlab="chi", ylab="exp(x)", cex.lab=4,axes=F)
axis(1, labels=NA,at=c(0,5))
axis(2, labels=NA,at=c(0,150))
text(1,120,"Alpha",adj=c(0,0),cex=3)
text(3.5,10,"Beta",adj=c(0,0),cex=3)
Run Code Online (Sandbox Code Playgroud)

为了获得以下内容

综合

我还想让情节2变得透明,这样如果在情节2后面有一些情节1的元素,它们仍会显示(就像蓝线一样).同样重要的是图2的较大标签以及其轴上没有标签和刻度.

这可能吗?请仅基于R解决方案(没有ggplot2 /无格)

plot r graph

8
推荐指数
2
解决办法
3341
查看次数

标签 统计

graph ×1

plot ×1

r ×1