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

How to create lower density plot using your own density function in GGally

With the following code: library(GGally) library(tidyverse) library(viridis) dat <- iris %>% select(-Species) my_fn <- function(data, mapping, ...){ # Using default ggplot density function p <- ggplot(data = data, mapping = mapping)…
pdubois
  • 7,640
  • 21
  • 70
  • 99
5
votes
2 answers

Discretely selecting the variables/columns I want in the parallel coordinate plot, and setting it so that this legend also displays the actual value

I am currently analysing the Auto data from the ISLR package. I want to produce a parallel coordinate plot of the variables mpg, cylinders, displacement, horsepower, weight, acceleration, and year. My plot is as follows: library(GGally) parcoord =…
The Pointer
  • 2,226
  • 7
  • 22
  • 50
5
votes
1 answer

Registered S3 method overwritten by 'GGally': method from +.gg - RStudio loading package without running code?

Very peculiar behaviour in GGally - I filed an issue here. My question to you folks is, do you think that is a bug in RStudio or in GGally. How does this even happen? In a completely new R Studio project, when opening a script that contains a line…
tjebo
  • 21,977
  • 7
  • 58
  • 94
5
votes
1 answer

Using GGPairs() on a large dataset with many variables

I need to use ggpairs() from the GGally plugin in R. I want to look at the correlation between 1 of the variables with the other 24 variables in this dataset and am required to use ggpairs(). How can I either break it up into several plots or…
user1713336
  • 131
  • 5
  • 14
5
votes
1 answer

Wrap Axis Labels in Correlation Matrix

I'm attempting to use the ggcorr() function within library(GGally) to create a correlation matrix. The package is working as it is supposed to, but I'm running into an issue where I would like to edit how the axis labels appear on the plot.…
medavis6
  • 843
  • 10
  • 32
5
votes
3 answers

decreasing the line thickness and 'Corr:' font size in ggpairs plot

I'm doing a ggpairs plot, but the regression line is too thick and the 'Corr:' text font is too big. data(mtcars) head(mtcars) mtcars$am <- as.factor(mtcars$am) g <- ggpairs( data = mtcars, lower = list( continuous = wrap("smooth", alpha…
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
5
votes
2 answers

Scattermatrix in ggplot2/GGally without density plots

I made a scattermatrix with the ggplot2 extension GGally with the following code ggscatmat(dat2, columns = 2:6, color="car", alpha=0.8) + ggtitle("Korrelation") + theme(axis.text.x = element_text(angle=-40, vjust=1, hjust=0, size=10)) Now my…
Marie-Louise
  • 419
  • 1
  • 5
  • 18
5
votes
1 answer

ggparcoord: color using discrete scale

I cannot seem to get my ggparcoord plot to color using a discrete scale. When I do this: ggparcoord(data = iris, columns = 1:4, groupColumn = "Species") the output plot is still coloring the lines using a continuous scale (using the levels of the…
adilapapaya
  • 4,765
  • 3
  • 25
  • 26
5
votes
2 answers

how to add geom_abline to ggpairs?

I want to create something like this library(lattice) splom(~iris[1:4], groups = Species, data = iris, panel=function(x,y,...) { panel.abline(0,1) panel.superpose(x,y,...) …
hatmatrix
  • 42,883
  • 45
  • 137
  • 231
4
votes
1 answer

How to make this graph - that compares ranks - in R?

I'm trying to make a graph like the one on the picture in R. I tried with this piece of code, however it doesn't look the same, I want it to be symmetrical just like the one on the picture. My data.frame looks like this: Group Ranking1 …
4
votes
1 answer

GGally::ggpairs plot does not display correlation coefficients

I am trying to understand why the plot with the correlation coefficient is not showing while passing the command ggpairs(iris, mapping=ggplot2::aes(colour = Species)) console output Here is what it looks like: the plots displaying the correlation…
mogad0n
  • 41
  • 5
4
votes
1 answer

ggpairs plot with heatmap of correlation values with significance stars and custom theme

I would like to create a correlation plot with ggPairs() which should contain a heat map of correlation values (as in this SO question) significance stars for the correlation (as in this SO question) font type and font size according to a custom…
mavericks
  • 1,005
  • 17
  • 42
4
votes
1 answer

Removing background color for column labels while keeping plot background color ggpairs

I have defined a function to set the background in ggpairs to match the level of correlation between two variables. However, I would also like to remove the gray background from the variable labels running along the outside of the plot, but I'm not…
humperderp
  • 241
  • 1
  • 11
4
votes
1 answer

Color by degree in R using ggnet2

I've been trying to plot a graph using ggnet2. To do this I use the following code: library(igraph) lapply(c("sna", "intergraph", "GGally", "igraph", "network"), require, character.only=T) data <- read.table('CA-CondMat.txt',sep="\t",header=TRUE) g…
totoedrm
  • 43
  • 6
4
votes
0 answers

Is there a way to turn a ggpairs() plot into a ggplot2 object?

In a long but not complex analysis, I am generating a lot of ggplot2 plots, which are being dealt in the same programmatic way. I will also need matrix plots every now and then, but ggplot2 no longer implements any matrix plot function (since…
Marcelo Ventura
  • 581
  • 7
  • 19
1 2
3
13 14