Questions tagged [ggally]

GGally is designed to be a helper to ggplot2. It contains templates for different plots to be combined into a plot matrix, a parallel coordinate plot function, as well as a function for making a network plot.

GGally is designed to be a helper to . It contains templates for different plots to be combined into a plot matrix, a parallel coordinate plot function, as well as a function for making a network plot.

Repositories

Resources

Vignettes

196 questions
3
votes
1 answer

How to make a bubble chart with GGally::ggpairs?

I would like to create a bubble chart matrix using GGally::ggpairs. Defining the point/bubble size in ggplot2 is easy using the size argument: library("ggplot2") data(mtcars) p <- ggplot(mtcars, aes(wt, mpg)) p + geom_point(aes(size = qsec))…
chamaoskurumi
  • 2,271
  • 2
  • 23
  • 30
3
votes
0 answers

Modifying ggpairs plot to look like plotmatrix in ggplot2

require(GGally) data(iris) ggpairs(dd2, columns = 1:4, upper = list(continuous = "points"), lower = list(continuous = "cor",params = c(corSize = 10)), diag = list(continuous = "bar"), axisLabels = 'show') Is there…
KatyB
  • 3,920
  • 7
  • 42
  • 72
2
votes
0 answers

how to specify variable order using ggcoef_compare?

I'm working with ggcoef_compare to plot coefficients from two separate models. I want to specify the variable order. The issue: my code worked in August, but it no longer specifies the correct variable order today. I've updated all the necessary…
trinitysara
  • 175
  • 1
  • 8
2
votes
1 answer

ggcoef_model error when two random intercepts

When trying to graph the conditional fixed effects of a glmmTMB model with two random intercepts in GGally I get the error: There was an error calling "tidy_fun()". Most likely, this is because the function supplied in "tidy_fun=" was misspelled,…
Charlie_J
  • 89
  • 6
2
votes
1 answer

Is it possible to split correlation box to show correlation values for two different treatments in pairplot?

With the code below, I have created a scatterplot matrix. The below code just creates a correlation matrix for all of the data, regardless of treatment. However, a column in my data is "Si". I would like to make two different matrices (one for each…
washfaq
  • 268
  • 2
  • 12
2
votes
1 answer

Reduce empty space in ggnet2 network plot

I'm plotting the network graph pictured below using R and GGally::ggnet2. You can see that there are several independent clusters disconnected from each other and these are quite spread out leaving a lot of empty space on the figure. Is it possible…
dariober
  • 8,240
  • 3
  • 30
  • 47
2
votes
0 answers

Names in diagonal in ggpairs (R)

I've been searching everywhere on how to replace the diagonal in this correlation plot matrix with the names of my variables... Is there anyway to do so? contVar <- c("survived", "age", "sibsp", "parch") ggpairs(na.omit(titanic)[, contVar], diag =…
mas2
  • 75
  • 11
2
votes
1 answer

R GGally::ggpairs, corrlation matrix plot, how to custom diag

I want to plot a correlation plot with ggpairs, of which the upper display the correlation coefficient and the lower panel display the correlated dotplot. And all these panel will be filled with color by the correlation coefficient. My code is like…
wanghao
  • 43
  • 4
2
votes
1 answer

Change axis labels of a modified ggpairs plot (heatmap of correlation)

I wanted to combine a ggpairs plot with a heatmap and found a wonderful solution: ggpairs plot with heatmap of correlation values #library library(GGally) library(ggplot2) #data sample_df <-…
ava
  • 840
  • 5
  • 19
2
votes
2 answers

Round correlation with GGally pair plot

To increase the readability of a pair plot, with many variables, I would like to round the coefficient of correlation provided by ggpairs() function. In the following example, instead of having a coefficient of 0.807 displayed, I would like to have…
P. Denelle
  • 790
  • 10
  • 24
2
votes
1 answer

ggparcoord axes adjustments: remove default labels, remove extra spacing

I'd like to remove the default "variable" and "value" labels on the axes of ggparcoord plots: library(GGally) ggparcoord(data = mtcars, columns = c(4:5), groupColumn = 1, scale = "globalminmax", alphaLines…
dfang
  • 23
  • 2
2
votes
1 answer

Remove density axis text in ggpairs

I am trying to remove axis text for the density plots within ggpairs. So, for this example, I hope to remove the text in the purple boxes: I believe that to remove the y-axis text in the top left plot, I may need to make changes to the function…
user2808302
2
votes
1 answer

ggpairs() correlation values without gridlines

I have this code that generates the plot below. library(ggplot2) library(GGally) data(iris) ggpairs(data = iris[, 1:4], axisLabels = "none", switch = "both") I'd like to do three things with this plot: 1) remove the gridlines in the correlation…
Manojit
  • 611
  • 1
  • 8
  • 18
2
votes
0 answers

ggpairs: adjusting axis labels to show minimum and maximum only

I want to show just the minimum and maximum values for all the axes of a ggpairs {GGally} plot. Find below a reproducible example df=as.data.frame(matrix(1:1000,nrow = 100)) ggpairs(df) I know I can do it individually by using breaks, but I…
rm167
  • 1,185
  • 2
  • 10
  • 26
2
votes
0 answers

New ggplotly warning message: Can only have one: highlight

I have been creating a scatterplot matrix with hexagon bins using ggplotly for several months. Recently, I noticed a new warning message (which I do not believe was there a few months ago) when running ggplotly() on a ggmatrix object from ggpairs. I…
user2808302