मैं ggpairs
का उपयोग कर स्कैटरप्लॉट मैट्रिक्स की योजना बना रहा हूं। मैं निम्नलिखित कोड का उपयोग कर रहा:ggpairs() में बाहरी किंवदंती कैसे जोड़ें?
# Load required packages
require(GGally)
# Load datasets
data(state)
df <- data.frame(state.x77,
State = state.name,
Abbrev = state.abb,
Region = state.region,
Division = state.division
)
# Create scatterplot matrix
p <- ggpairs(df,
# Columns to include in the matrix
columns = c(3,5,6,7),
# What to include above diagonal
# list(continuous = "points") to mirror
# "blank" to turn off
upper = "blank",
legends=T,
# What to include below diagonal
lower = list(continuous = "points"),
# What to include in the diagonal
diag = list(continuous = "density"),
# How to label inner plots
# internal, none, show
axisLabels = "none",
# Other aes() parameters
colour = "Region",
title = "State Scatterplot Matrix"
)
# Show the plot
print(p)
और मैं निम्नलिखित साजिश मिलती है:
अब, एक आसानी से देख सकते हैं कि मैं मैट्रिक्स में हर साजिश के लिए किंवदंतियों हो रही है। मैं पूरी साजिश के लिए केवल एक सार्वभौमिक किंवदंती चाहता हूं। मैं उसको कैसे करू? किसी भी मदद की सराहना की जाएगी।
क्यों इस 'टैग है shiny' ??? – jlhoward
टैग को हटा दिया, इसे इंगित करने के लिए धन्यवाद। – Patthebug