plot.sValues {sValues}R Documentation

Plot method for S-values

Description

Plot methods for objects of the class sValues.

Usage

## S3 method for class 'sValues'
plot(x, type = "t_s_plot", ...)

Arguments

x

an object of class sValues.

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.

Details

Additional arguments:

t_s_plot

beta_plot

Value

It returns a ggplot object with the requested plot.

Examples

# 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)


[Package sValues version 0.1.6 Index]