jacob-long / jtools

Tools for summarizing/visualizing regressions and other helpful stuff
https://jtools.jacob-long.com
GNU General Public License v3.0
164 stars 22 forks source link

plot_summs error #134

Closed calzadillan closed 1 year ago

calzadillan commented 1 year ago

Hi there, I'm trying to use plot_summs. Here is my code.

met1<-lm(fibrosis ~ age + bmi + auditc +sex+ `cis-3,4-methyleneheptanoylglycine`, data=mlr)
library(jtools)
library(huxtable)
library(officer)
library(flextable)
library(broom.mixed)
plot_summs(met1)

And I get this error: Error in element_line(colour = text_and_line_color, linewidth = 0.5, linetype = 1, : unused argument (linewidth = 0.5) In addition: Warning messages: 1: Ignoring unknown parameters: linewidth 2: Ignoring unknown parameters: linewidth

Any assistance is appreciated. Thanks!

geejaytee commented 1 year ago

This is also true for running effect_plot() on R 4.2.1, package version 2.2.1

But the issue was flagged when installing the package (from source) ** byte-compile and prepare package for lazy loading Note: possible error in 'element_line(colour = text_and_line_color, ': unused argument (linewidth = 0.5) Note: possible error in 'element_line(colour = text_and_line_color, ': unused argument (linewidth = 0.5) Note: possible error in 'element_rect(fill = bg_color, ': unused argument (linewidth = 0.5)

jacob-long commented 1 year ago

Hi there, this problem should be fixed if you update to the latest edition of the ggplot2 package.