!!!sjPlot {{outline}} ---- https://strengejacke.github.io/sjPlot/ {{pre ```{r, eval=F} install.packages("ggeffects") install.packages("sjPlot") ``` }} !!図のプロット plot_model() *clmmもclmm2もプロットできる。 !交互作用の分析 {{pre plot_model(モデル, type="int") }} *自動的に交互作用のある部分を分析・可視化 !各種変更は、ggplot2の関数を使えばできる * x軸のメモリ + scale_x_continuous(breaks=1:8, limits=c(1,8)) * 白黒テーマ + theme_bw() ! 白黒の指定オプション colors="bw" * デフォルトはカラーだが、白黒に印刷すると、線の種類が区別できなくなってしまう * 白黒指定すると、線が、実践と破線になる plot_model(Criterion.model0g, type="int", title="", colors="bw") ! x軸のラベルの変更は + labs(x = "")を足す plot_model(モデル, type="int", title="", colors="bw") + labs(x="Time") !!表の作成 <<美しすぎて涙が出る>> !tab_model() https://strengejacke.github.io/sjPlot/articles/tab_model_estimates.html !オプションで、Wordのファイルに出力も可 tab_model(モデル, file="ファイル名.doc") * 拡張子.docxとするとエラーになるので、.docで出力 !!References !plot_model() http://www.strengejacke.de/sjPlot/reference/plot_model.html