Skip to content

Instantly share code, notes, and snippets.

@hrstt
Created January 16, 2015 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrstt/3311dcff6dc2b6c188c0 to your computer and use it in GitHub Desktop.
Save hrstt/3311dcff6dc2b6c188c0 to your computer and use it in GitHub Desktop.
# ggplot2 をベースにしたペアプロットのサンプル
install.packages("GGally")
library(GGally)
airquality$Month <- as.factor(airquality$Month)
airquality <- airquality[, colnames(airquality) != "Day"]
ggpairs(na.omit(airquality), lower=list(continuous="smooth"), colour="Month", params=list(corSize=6,labelSize=10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment