sj.Plot套件更新,新功能加上!
Published by 劉正山,
February 27, 2016
Changes to functions
- Improved text label positioning for plotting functions.
- Plotting functions now get an argument
y.offset
to specify an offset for text labels from geoms. sjp.lm
andsjt.lm
now supportgls
models fitted withnlme::gls
.sjp.int
now fits the y-axis to the required range for predicted probabilities for logistic regressions instead of always using a range from 0 to 1, even for smaller effects (#86).sjp.glmer
andsjp.lmer
get aaxisLimits.y
argument to specify y-axis limits specifically for predicted probability or effect plots.view_df
now supports showing missings and missing percentages (#76). <--這是量化資料分析全班的貢獻!- Harmonized column names of returned data frames to match broom's naming convention for
sjp.lm
,sjp.glm
,sjp.lmer
,sjp.glmer
,sjp.lmm
,sjp.glmm
,sjp.aov1
andsjp.int
(#94). - Functions with harmonized data frames as return value now also gain the class attribute
sjPlot
, and all returned data frame values are nameddata
. sjp.scatter
gets auseCount
argument to indicate overplotting by point size.sjp.scatter
now also plots data points when using argumentpointLabels
, so exact position of labelled data points is visible.geom_text_repel
is used to avoid overlapping of points and labels.sjt.xtab
gets atitle
argument to print a table caption.
Bug fixes
- Automatic label detection did not choose column names when no variable labels were present for functions that accepted data frames as data argument (#96), now works again. <—這是別人的貢獻,但對我們有更大好處!
sjp.int
did not work with fitted models from classlme
, now works again.sjt.xtab
did not showNA
values forshowNA = TRUE
, now works again. <—這是別人的貢獻,但對我們有更大好處!sjt.xtab
did not use argumentsvalueLabels
(#101), now works again. <—這是別人的貢獻,但對我們有更大好處!- Table summary (chi-squared, phi, p) for
sjt.xtab
were wrong, now works again. <--這是量化資料分析全班的貢獻! - Due to rounding, total percentage in
sjt.xtab
could differ from 100%. - Minor fixes.