sj.Plot套件更新,新功能加上!
Published by 劉正山,
February 27, 2016
Changes to functions
- Improved text label positioning for plotting functions.
- Plotting functions now get an argument
y.offsetto specify an offset for text labels from geoms. sjp.lmandsjt.lmnow supportglsmodels fitted withnlme::gls.sjp.intnow 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.glmerandsjp.lmerget aaxisLimits.yargument to specify y-axis limits specifically for predicted probability or effect plots.view_dfnow 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.aov1andsjp.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.scattergets auseCountargument to indicate overplotting by point size.sjp.scatternow also plots data points when using argumentpointLabels, so exact position of labelled data points is visible.geom_text_repelis used to avoid overlapping of points and labels.sjt.xtabgets atitleargument 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.intdid not work with fitted models from classlme, now works again.sjt.xtabdid not showNAvalues forshowNA = TRUE, now works again. <—這是別人的貢獻,但對我們有更大好處!sjt.xtabdid not use argumentsvalueLabels(#101), now works again. <—這是別人的貢獻,但對我們有更大好處!- Table summary (chi-squared, phi, p) for
sjt.xtabwere wrong, now works again. <--這是量化資料分析全班的貢獻! - Due to rounding, total percentage in
sjt.xtabcould differ from 100%. - Minor fixes.