title: R - sjp.glm "Error: Unknown parameters: family"
body: <p>I'm getting the following error when I try to plot predicted probabilities of a glm model using the sjPlot package in R:</p>
  
  <pre><code>Error: Unknown parameters: family
  </code></pre>
  
  <p>I'm somewhat new to R and have been unable to successfully troubleshoot this issue.  Here is code:</p>
  
  <pre><code>options(warn=1)
  library(sjPlot)
  
  df = data.frame(x = c(10, 20, 30, 40, 50, 60, 70, 80),
              y = c(1, 1, 0, 1, 1, 0, 0, 0))
  
  m1 = glm(data = df, y ~ x, family = binomial)
  sjp.glm(fit = m1, type = "prob")
  </code></pre>
  
  <p>And when I run it...</p>
  
  <pre><code>&gt; sjp.glm(fit = m1, type = "y.pc", show.se = TRUE)
  Error: Unknown parameters: family
  </code></pre>
  
  <p>Since they both refer to "family", I would think the error is connected to this warning I get when I load the sjPlot library, but I don't know enough about R yet to understand it...</p>
  
  <pre><code>&gt; options(warn=1)
  &gt; library(sjPlot)
  Note: the specification for S3 class “family” in package ‘MatrixModels’ seems
  equivalent to one from package ‘lme4’: not turning on duplicate class
  definitions for this class.
  Warning: replacing previous import by ‘grid::unit’ when loading ‘sjPlot’
  </code></pre>
  
  <p>Any help is much appreciated...</p>