Skip to content

Instantly share code, notes, and snippets.

@abikoushi
Created November 7, 2024 10:15
Show Gist options
  • Save abikoushi/b34a1eca6853beb095201f328630c3f6 to your computer and use it in GitHub Desktop.
Save abikoushi/b34a1eca6853beb095201f328630c3f6 to your computer and use it in GitHub Desktop.
`parcoord` chart in R
library(dplyr)
library(MASS)
data("diamonds", package = "ggplot2")
diamonds2 <- dplyr::select(diamonds, carat, depth:price,x:z)
a01 <- rgb(0,0,0,0.1)
png("pairs.png")
plot(diamonds2, col=a01)
dev.off()
png("pcp.png")
parcoord(diamonds2, col = a01)
dev.off()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment