साथGGally :: ggpairs में अलग-अलग ggplots संपादित करें: मुझे घनत्व प्लॉट कैसे ggpairs में भरा नहीं है?
library(GGally)
data(diamonds, package="ggplot2")
diamonds.samp <- diamonds[sample(1:dim(diamonds)[1],200),]
# Custom Example
ggpairs(
diamonds.samp[,1:5],
mapping = ggplot2::aes(color = cut),
upper = list(continuous = wrap("density", alpha = 0.5), combo = "box"),
lower = list(continuous = wrap("points", alpha = 0.3), combo = wrap("dot", alpha = 0.4)),
diag = list(continuous = wrap("densityDiag")),
title = "Diamonds"
)
मैं
मिल रहा विकर्ण घनत्व भूखंडों को भरा नहीं जा कैसे कर सकता हूँ, और केवल लाइनों दिखाने?
काम की तरह ... लेकिन वास्तव में नहीं।
यह वास्तव में बदसूरत है - कोड के संदर्भ में - क्योंकि यह मुझे कोई वास्तविक समझ नहीं देता है। इसके अलावा, यह यहां काम नहीं करता है, क्योंकि यह हिस्टोग्राम भी बदलता है।
ggpairs(
diamonds.samp[,1:5],
mapping = ggplot2::aes(color = cut),
upper = list(continuous = wrap("density", alpha = 0.5), combo = "box"),
lower = list(continuous = wrap("points", alpha = 0.3), combo = wrap("dot", alpha = 0.4)),
diag = list(continuous = wrap("densityDiag"), mapping = ggplot2::aes(fill=carat)),
title = "Diamonds"
)
पाया जा सकता है भी https://github.com/bbolker/stat744/ देखना ब्लॉब/मास्टर/व्याख्यान/explore_multiway.R # L109 –