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
2
votes
1 answer

GGpairs, correlation values are not aligned

I am trying to create a correlation matrix using GGpairs, the scatterplots are coloured by group (reg or irreg). The correlation values plotted on the upper corner are not aligned, as you see in the image here the Cor, reg and irreg values are not…
Chuck C
  • 153
  • 2
  • 12
2
votes
1 answer

"Incorrect Plot" label in ggpairs

I have a simple question. How can I get totally blank spaces in the upper panel of a matrix using ggpairs? I am using this code: ggpairs(iris, columns = 2:4, title = "[1989]", upper = list (continuous = "blanck"), lower = list(continuous =…
2
votes
1 answer

GGally::ggpairs plot with varying size of correlation coefficient for grouped data

Please refer to the following link on the solution to a previous question. After overriding the "ggally_cor" function, it is very handy to be able to plot the correlation coefficient adjusting the size to its equivalent estimated value, however,…
steve
  • 31
  • 5
2
votes
1 answer

Error in GGally: Error in unit(tic_pos.c, "mm") : 'x' and 'units' must have length > 0

I'm trying to generate a plot for my dataset that can be found here There are 13 attributes with 13th attribute being the class. The first attribute is just ID so I want to ignore it. I try to create the graph like this but I'm getting an error >…
Anthony
  • 33,838
  • 42
  • 169
  • 278
2
votes
1 answer

Remove background colour in ggpairs from GGally

I'm plotting all my graphs with theme_bw() in ggplot2, and now i'd like to apply the same (or similar) theme to a ggpairs plot of GGally. I tried it this way, but this seems to have no effect: p <- ggpairs(vars, columns=1:ncol(vars),…
ruben baetens
  • 2,806
  • 6
  • 25
  • 31
2
votes
0 answers

ggpairs wrong color mapping when factor is numeric

I am having problems with the ggpairs colour mapping. When the variable used to set the colour is a character (converted to a factor), things work as expected: library(GGally) data(state) df <- data.frame(state.x77, State =…
user3570195
  • 71
  • 1
  • 8
2
votes
1 answer

Parallel co-ordinates plot in R (ggparcoord)

I am facing a somewhat strange situation while plotting a parallel co-ordinates plot using ggparcoord. I am running the following code and it is running perfectly fine: # Load required packages require(GGally) # Load datasets data(state) df <-…
Patthebug
  • 4,647
  • 11
  • 50
  • 91
2
votes
2 answers

How to draw loess estimation in GGally using ggpairs?

I tried GGally package a little bit. Especially the ggpairs function. However, I cannot figure out how to use loess instead of lm when plot smooth. Any ideas? Here is my code: require(GGally) diamonds.samp <-…
Daijiang Li
  • 697
  • 4
  • 16
1
vote
1 answer

show only selected legends in ggplot2 (ggparcoord)

In the following code used to plot the parallel coordinates (reference), I want to display only limited numbers of the legend for the column "5". I use column 5 to group in the plot. Column 5 have multiple unique values, when I plot, all the values…
lpt
  • 931
  • 16
  • 35
1
vote
1 answer

ggparcoord() from ggally in R produces Warning: The following aesthetics were dropped during statistical transformation: colour

The Warning " The following aesthetics were dropped during statistical transformation: colour" appears when using ggparcoord() from GGally package in R. I don't know why and how to avoid? #dataset2---- data2 <- data.frame( "geneSymbol" =…
wbart
  • 17
  • 3
1
vote
1 answer

x-axis text disappears after customizing ggpairs plot

I want to create a correlation matrix with ggpairs. I only need the lower part. The upper and diagonal parts are not relevant. Furthermore, I want to keep the final plot simple and therefore remove the axis labels at the top left and bottom right,…
ChrisAl
  • 13
  • 3
1
vote
0 answers

How to rename the labels in ggcoef_model?

I'm trying to rename the coefficients of the variables in a graphic of a logistic regression in the ggcoef_model function. For example, in the variable "ID_GRADE" i want to rename "ID_GRADE[T.2]" as "2do grado". What can I do? Call: glm(formula =…
1
vote
0 answers

how to add p-values to correlation plot using GGally

Is there a way to add p value for the correlation plot using "ggcorr" from the package "GGally"? I only managed to add the pearson r value but not the p-value. install.packages("ggcorr") library("ggcorr") ggcorr(iris[1:4], method = c("everything",…
maya zadok
  • 23
  • 4
1
vote
1 answer

Display y-axis text for categorical column and numeric for group column with the ggparcoord?

I need to create a parallel axis coordinate plot (preferably withGGally's ggparcoord function). However, the vanilla geom_line could also potentially work with some extra transformation. Background (if TL;DR just skip to 'Problem') The data relates…
1
vote
1 answer

Add p-value and/or 95% CI in the text of a correlation matrix / pairs plot

Is it possible to add in the text of the correlation matrix plot the exact p-value and/or 95% CI, next to where the point estimate is mentioned, by adding something to this code? I welcome solutions using other packages too. ggpairs(baseline2,…
jtjtjtjt
  • 105
  • 6