小编Ana*_*soa的帖子

使用 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 …
Run Code Online (Sandbox Code Playgroud)

plot r ggplot2 ggally

1
推荐指数
1
解决办法
2121
查看次数

标签 统计

ggally ×1

ggplot2 ×1

plot ×1

r ×1