plot_beta: Plotting Functions

Description Usage Arguments Value Examples

View source: R/plotting-functions.R

Description

Plotting Functions

Usage

1
plot_beta(obj, base_theme = theme_grey, lab_list = NULL, theme_list = NULL)

Arguments

obj

A simrel object

base_theme

Base ggplot theme to apply

lab_list

List of labs arguments such as x, y, title, subtitle

theme_list

List of theme arguments to apply in the plot

Value

A plot of true regression coefficients for the simulated data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
sobj <- multisimrel()
sobj %>%
    plot_beta(
        base_theme = ggplot2::theme_bw,
        lab_list = list(
            title = "Regression Coefficients",
            subtitle = "From Simulation",
            y = "True Regression Coefficients"
        ),
        theme_list = list(
            legend.position = "bottom"
        )
    )

simrel documentation built on Sept. 17, 2021, 5:06 p.m.