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
1
vote
1 answer

Argument palette not working in ggcorr - GGally?

I would like to use the ggcorr function from GGally with the RdBu palette from RColorBrewer like demonstrated here. But it seems that non of the palettes seems to work. Here is a reproducible…
Quinten
  • 35,235
  • 5
  • 20
  • 53
1
vote
0 answers

How to make parallel coord plot interactive and more readable?

I am trying to make a parallel coordinate graph in R. I want the user to be able to adjust which specific factor level they are viewing data for (album name in this case). Below is my code: ggparcoord(ts, columns = c(3:4, 9, 11:12), …
1
vote
0 answers

Why is GGally plotting incorrect values with the ggparcoord() function?

I am currently trying to make a parallel coordinate plot in R with the GGally package. Below is my code (I have deleted the aesthetic changes such as theme()). ggparcoord(ts, # dataframe columns = c(3:4, 9, 11:12), # Selecting the…
1
vote
1 answer

Tweaking ggpairs() or a better solution to a correlation matrix

I am trying to create a correlation matrix between my X and Y variables and display this information in a nice figure. I am currently using ggpairs() from the GGally package, but if there's a better way to do this then I am happy to try something…
seak23
  • 195
  • 9
1
vote
1 answer

Looking for a way to plot a pairwise scatterplot matrix where variables are in two groups

Looking for a way to plot a pairwise scatterplot matrix where variables are in two groups, i.e. the plots need to be restricted to pairs between groups, excluding within-group pairs. For instance, the base pairs() produces this …
Mihail
  • 761
  • 5
  • 22
1
vote
1 answer

How can I add colours in ggpairs (GGally)?

I'm new in GGally and I'd like to ask u how to add colours in the different lines of my variables in ggpairs(). Can I give a specific colour for each one? Thanks!
Claudia RF
  • 11
  • 1
1
vote
0 answers

Pairing different gam smoothing regression (mgcv) to ggally [R]

I struggled with this code to pair different gam' smoothing regression (bs="cs" and bs="tp") using GGally: sel1<-select(rekap,c('Total_Ni', 'Total_Mg', 'Total_Fe', 'CEC', 'pH','SWC'))## selecting column str(sel1) tibble [36 x 6] (S3:…
1
vote
1 answer

Adding R^2 and P-value in ggpairs (GGally) composed of LM and GAM scatterplot

i'm new to R and stackoverflow I've been looking for the code to present R^2 and P-value in paired graph particularly for gam (upper) and lm (lower). However, i stuck with this code: library(tidyverse) # plotting and manipulation library(grid) #…
1
vote
0 answers

GGally ggpairs plot, y-axis of the first variable is labelled with wrong values, though x-axis is correct

I did a GGally-ggpairs-plot (see below) with now having the following issue: The y-axis of the first variable PdKeyT is labelled with the incorrect values (yellow), instead should be labelled with values according to its x-axis from minus 25 to plus…
jaysigg
  • 201
  • 1
  • 7
1
vote
1 answer

How can I leave blank cell with non-significant value in the scatter plot matrix?

I have the following plot and I am trying to make this plot like this (manually edited) having non-significant cells are blank I am using these r codes; leg <- grab_legend(ggplot(data=data1, aes(x=NA, y=NA, colour=Si)) + …
washfaq
  • 268
  • 2
  • 12
1
vote
0 answers

R GGally::ggpairs - how to adjust by BH and modify stars (*) significance levels?

I usually provide a simple correlation matrix plot as the output of correlation analyses using psych::corr.test and corrplot. Now I am required to accompany it by a more detailed matrix plot with densities and scatter plots with slopes, for…
DaniCee
  • 2,397
  • 6
  • 36
  • 59
1
vote
1 answer

How to customize graph with 2nd correlation line in ggpairs

Following the post, How to customize lines in ggpairs [GGally] I have made graph by using below code; library("GGally") library("ggplot2") data(iris) lowerFn <- function(data, mapping, method = "lm", ...) { p <- ggplot(data = data, mapping =…
washfaq
  • 268
  • 2
  • 12
1
vote
1 answer

How to get R^2 with ggpairs?

How to make ggpairs report the upper corner with R^2 instead of correlation? library(GGally) ggpairs(mtcars[c("mpg", "disp", "hp", "drat", "wt", "qsec")])
ju.
  • 1,016
  • 1
  • 13
  • 34
1
vote
1 answer

Using color in ggnet

I have a network that I made like this: structure(list(myfirstcol = c(1L, 2L, 3L, 1L, 2L, 3L, 2L, 3L, 1L), mysecondcol = c(1L, 2L, 3L, 2L, 3L, 2L, 1L, 1L, 3L), value = c(394L, 445L, 83L, 2L, 12L, 19L, 33L, 84L, 12L)), class = "data.frame",…
Cauder
  • 2,157
  • 4
  • 30
  • 69
1
vote
0 answers

How to add a second legend using ggpairs in R?

Basically, I'm trying to add a second legend to a ggpairs plot. In the example plot below, I am using the iris data and running a randomForest to get the predictions. I am plotting the density on the diagonal, a scatterplot in the lower triangle and…
Electrino
  • 2,636
  • 3
  • 18
  • 40