Data Visualization
2024-12-17
2 / 2
Machine Learning
SHAP Visualization in R (first post)
Yang Liu
/
2018-10-14
Update 19/07/21: Since my R Package SHAPforxgboost has been released on CRAN, I updated this post using the new functions and illustrate how to use these functions using two datasets. For more information, please refer to: SHAP visualization for XGBoost in R […] This is the example I used in the package SHAPforxgboost # Example use iris suppressPackageStartupMessages({…
Data Visualization
Spatial data in R: Dividing raster layers into equal-area rings
Yang Liu
/
2018-07-20
This data visualization example include: * Import .img file as a raster * Turn raster into a data.frame of points (coordinates) and values * Dividing the points into 100 equal-area rings * Calculate Built-up Area/Urban Extent for each ring * Turn dataframe into raster * Plot multiple figures on the same color scale […] […] list.of.packages <- c("raster",…
Data Visualization
How to Draw Heatmap with Colorful Dendrogram
Yang Liu
/
2018-07-16
This data visualization example include: * Hierarchical clustering, dendrogram and heat map based on normalized odds ratios * The dendrogram was built separately to give color to dendrogram’s branches/labels based on cluster using dendextend * Heatmap is made by heatmap.2 from gplots using the built dendrogram * The rows are sorted by means from highest to lowest, it can be done in either the…
««
«
1
2
»
»»