【问题标题】:Can't display x and y labels, when plotting with the quantreg command使用 quantreg 命令绘图时无法显示 x 和 y 标签
【发布时间】:2019-12-13 21:00:22
【问题描述】:

我正在尝试绘制 quantreg 命令的结果,但图表的标签不显示。我正在运行这段代码:

plot(summary(qrg), parm="agua_esgoto", xlab = "Quantiles", ylab = "Piped water and sewage", main = "Figure 1")

这是返回的图像:

【问题讨论】:

    标签: r plot quantreg


    【解决方案1】:

    需要设置边距才能看到y或x标签,您可以查看the vignette下的选项

    例如:

    data("engel")
    fm <- rq(foodexp ~ income, data = engel, tau = 1:9/10)
    
    plot(fm,parm=2)
    # no x or y labels can be seen
    

    plot(fm, parm = 2, mar = c(5.1, 4.1, 2.1, 2.1), 
    main = "", xlab = "tau", ylab = "income coefficient")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-02-02
      • 1970-01-01
      • 2021-01-06
      • 2018-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-29
      相关资源
      最近更新 更多