You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a suggested code or documentation change, improvement to the code, or feature request
I am trying to change the limits of the y-axis of plot.margins but I cannot find out how. For cplot(), on can simply use the option ylim but that results in an error for plot.margins. How can I change the axis limits of plot.margins, e.g. in order to include zeros for making the graph more intuitively readable?
## load package
library("margins")
## Load data
data(mtacars)
## Run logistic regressionlogodd<- glm(vs~disp, family=binomial, data=mtcars)
## Plot AME
plot(margins(logodd)) # Works as expected, but y-Axis does not include Zero
plot(margins(logodd), ylim= c(0, -.006)) # Gives error: formal argument "ylim" matched by multiple actual arguments
The text was updated successfully, but these errors were encountered:
Please specify whether your issue is about:
I am trying to change the limits of the y-axis of
plot.margins
but I cannot find out how. Forcplot()
, on can simply use the optionylim
but that results in an error forplot.margins
. How can I change the axis limits ofplot.margins
, e.g. in order to include zeros for making the graph more intuitively readable?The text was updated successfully, but these errors were encountered: