【问题标题】:Changing the size of the text in the axis labels of an Ecdf plot更改 Ecdf 图的轴标签中的文本大小
【发布时间】:2013-03-02 09:14:01
【问题描述】:

我从Hmisc 包中构造了一个Ecdf 图,调用如下:

require(Hmisc)
Ecdf(latency_targ1, group = CONDITION, lty = c(1, 2, 3, 4), 
        lwd = 4, label.curves = list(method = 'arrow', 
        keys = "lines", lwd = 2), xlim = c(0,500), 
        subtitles = FALSE, xlab = "Latency", 
        ylab = "Proportion latency <= x")

我一直无法找到如何更改绘图轴标签的大小,并且默认大小相当小。

【问题讨论】:

    标签: r ecdf hmisc


    【解决方案1】:

    试试这个:

    Ecdf(latency_targ1, group = CONDITION, lty = c(1, 2, 3, 4), 
        lwd = 4, label.curves = list(method = 'arrow', 
        keys = "lines", lwd = 2), xlim = c(0,500), 
        subtitles = FALSE, xlab = "Latency", 
        ylab = "Proportion latency <= x", 
        cex.lab=1.5, xaxt="n", yaxt="n")
    axis(2, cex.axis=1.5)
    axis(1, cex.axis=1.5)
    

    【讨论】:

    • 完美,效果很好。 cex.lab 是否被传递到标准杆?一般来说,对于 Ecdf 调用,可以直接在 Ecdf 调用中设置参数设置吗?
    猜你喜欢
    • 1970-01-01
    • 2011-07-18
    • 2013-02-03
    • 2016-04-25
    • 2012-05-08
    • 1970-01-01
    • 2018-07-20
    • 2022-09-28
    • 2014-02-19
    相关资源
    最近更新 更多