ningyile / mgcViz

An R package for interactive visualization of GAM models

Home Page:https://mfasiolo.github.io/mgcViz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CRAN_Status_Badge Build Status AppVeyor Build Status

mgcViz: visual tools for Generalized Additive Models

The mgcViz R package offers visual tools for Generalized Additive Models (GAMs). The visualizations provided by mgcViz differs from those implemented in mgcv, in that most of the plots are based on ggplot2's powerful layering system. This has been implemented by wrapping several ggplot2 layers and integrating them with computations specific to GAM models. Further, mgcViz uses binning and/or sub-sampling to produce plots that can scale to large datasets (n = O(10^7)), and offers a variety of new methods for visual model checking/selection.

See the vignette for an introduction to the following categories of visualizations:

  1. smooth and parametric effect plots: layered plots based on ggplot2 and interactive 3d visualizations based on the rgl library;

  2. model checks: interactive QQ-plots, traditional residuals plots and layered residuals checks along one or two covariates;

  3. special plots: differences-between-smooths plots in 1 or 2D and plotting multiple slices of multidimensional smooth effects.

How to linstall

install.packages("devtools")
devtools::install_github('ningyile/mgcViz')

Features

添加3d数据,方便之后在rgl package(推荐优先使用rgl包)或plotly包中绘制个性化3d图形

Ehanced 3D data output so that you can create customized 3D Surface plots with the rgl package(recommend) or plotly package later.

About

An R package for interactive visualization of GAM models

https://mfasiolo.github.io/mgcViz/


Languages

Language:R 100.0%