Examples for 'GGally::ggcoef'


Model coefficients with 'broom' and 'ggplot2'

Aliases: ggcoef

Keywords:

### ** Examples

# Small function to display plots only if it's interactive
p_ <- GGally::print_if_interactive

library(broom)
reg <- lm(Sepal.Length ~ Sepal.Width + Petal.Length + Petal.Width, data = iris)
p_(ggcoef(reg))
plot of chunk example-GGally-ggcoef-1
## No test: 
d <- as.data.frame(Titanic)
reg2 <- glm(Survived ~ Sex + Age + Class, family = binomial, data = d, weights = d$Freq)
ggcoef(reg2, exponentiate = TRUE)
plot of chunk example-GGally-ggcoef-1
ggcoef(
  reg2, exponentiate = TRUE, exclude_intercept = TRUE,
  errorbar_height = .2, color = "blue", sort = "ascending"
)
plot of chunk example-GGally-ggcoef-1
## End(No test)

[Package GGally version 2.1.2 Index]