Created
November 7, 2024 10:15
-
-
Save abikoushi/b34a1eca6853beb095201f328630c3f6 to your computer and use it in GitHub Desktop.
`parcoord` chart in R
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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