Description Usage Arguments Details Value Examples
Plot methods for objects of the class sValues
.
1 2 |
x |
an object of class |
type |
the type of the plot. Current options are t_s_plot which returns a scatterplot of s-values vs t-values for all coefficients and beta_plot which returns a plot of the different estimates for the coefficients. |
... |
additional arguments to be passed to the plot functions. See details. |
Additional arguments:
t_s_plot
R2_bounds
: a numeric vector of length two specifying which R2 bounds range to plot.
beta_plot
variables
: a character vector specifying which variables to plot. Default is "all".
error_bar
: should the error bars be plotted? Default is FALSE
.
ext_bounds_shades
: should shades representing the extreme bounds be plotted? Default is FALSE
.
It returns a ggplot
object with the requested plot.
1 2 3 4 5 6 7 | # growth regressions example
data(economic_growth)
eg_sv <- sValues(GR6096 ~ ., data = economic_growth)
plot(eg_sv, R2_bounds = c(0.5, 1))
plot(eg_sv, R2_bounds = c(0.1, 1))
plot(eg_sv, type = "beta_plot", variable = "OPENDEC1", error_bar = FALSE)
plot(eg_sv, type = "beta_plot", variable = "OPENDEC1", error_bar = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.