简体   繁体   English

R:减少分位数回归结果中的图数

[英]R: Reduce number of plots in quantile regression results

By using the following code I am able to plot the results of my quantile regression model:通过使用以下代码,我能够 plot 我的分位数回归 model 的结果:

quant_reg_all <- rq(y_quant ~ X_quant, tau = seq(0.05, 0.95, by = 0.05), data=df_lasso)
quant_plot <- summary(quant_reg_all, se = "boot")
plot(quant_plot)

However, as there are many variables the plots are unreadable as shown in the image below:然而,由于有许多变量,这些图是不可读的,如下图所示: 在此处输入图像描述

Including the label, I have 18 variables.包括label,我有18个变量。

How could I plot a few of these images at the time so they are readable?我怎么能在当时 plot 一些这些图像,以便它们可读?

depending on the number of graphs you cant, you could do:根据您无法使用的图表数量,您可以执行以下操作:

quant_reg_all <- rq(y_quant ~ X_quant, tau = seq(0.05, 0.95, by = 0.05), data=df_lasso)
quant_plot <- summary(quant_reg_all, se = "boot")
plot(quant_plot, 1:3)# plot the first 3
plot(quant_plot, c(3, 6, 9, 10))# plot the 3rd, 6th, 9th and 10th plots

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM