我想知道如何在R中更改密度图中的“默认”x标签(或副标题)。例如,我没有使用文本"N = ...,bandwidth = ...“在绘图上(我不知道它是x标签还是副标题,但它通常出现在x轴下)。
发布于 2012-04-24 07:56:06
您应该只使用标准的绘图参数来更改标签:
plot(density(rnorm(10)),
xlab="X", #Change the x-axis label
ylab="Density", #y-axis label
main="A nice title")#Main title
请参见绘图帮助页面:?plot
和documentation。
发布于 2015-03-15 20:29:12
要获取其中的rib,只需将它们指定为NA
plot(density(rnorm(10)),
xlab=NA, #Change the x-axis label
ylab=NA, #y-axis label
main=NA) #Main title
发布于 2016-05-30 09:21:00
在plot函数中,将ann=FALSE或放入单独的解析函数中
https://stackoverflow.com/questions/10293801
复制相似问题