Learn R Programming

pcutils (version 0.2.8)

plot.coefficients: Plot coefficients as a bar chart or lollipop chart

Description

This function takes the coefficients and generates a plot to visualize their magnitudes.

Usage

# S3 method for coefficients
plot(x, mode = 1, number = FALSE, x_order = NULL, ...)

Value

ggplot

Arguments

x

The coefficients to be plotted.

mode

The mode of the plot: 1 for bar chart, 2 for lollipop chart.

number

show number

x_order

order of variables

...

add

See Also

lm_coefficients