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

How to address overplotting in GGally::ggpairs()?

I'm using the ggpairs() function from the GGally package, but I'm having an issue dealing with overplotting. Is there a good way to address the overplotting? I've tried setting the alpha value but I couldn't find out how to pass it to ggpairs(). I…
max
  • 4,141
  • 5
  • 26
  • 55
0
votes
1 answer

changing a color s a ggally ggparcoord plot in r

ggparcoord(data = df, columns = 1:4, mapping=aes(color=as.factor(Species)))+ scale_color_discrete("Species",labels=levels(df$Species)) How do I change the standard colors of this plot to stesoa=black, versicolor=green, and virginica=mageanta?
0
votes
1 answer

How can I remove the "Corr" text from the correlation matrix done with GGally?

I have used the following codes for the correlation matrix library(ggplot2) library(GGally) ggpairs(CorrelationBINA, title="Correlation matrix of BINA dhan7", upper = list(continuous= wrap("cor", size = 10)), lower = list(continuous…
0
votes
1 answer

Is there a way that I can solve or stop this error problem in cardinality_threshold?

I have about 17 soil variables that I'd like to run correlations with elevations, temperature and rainfall against species richness and abundance. I have 39 plots (rows) and the columns contain, environmental variables such as elevation, abundance,…
0
votes
0 answers

How to deal with namespace dependencies from other packages when creating a package in R?

I am creating my own package in R. Within my package I am using the ggnet2 function from GGally package. I am trying to get my package CRAN ready and Im using a bunch of tests from the devtools package. My issue is, I get an error when I run the…
Electrino
  • 2,636
  • 3
  • 18
  • 40
0
votes
1 answer

Change point plotting order in ggnet

I am working with a large network and wish too highlight certain nodes. I would like these nodes to plot on top of a dense network. They currently are identified by a certain color. Here is some simple example…
Henry Holm
  • 495
  • 3
  • 13
0
votes
1 answer

R correlation matrix showing only part of the data using ggcorr

I have a large dataset with different numeric and factorial data. Doing a correlation plot with ggcorr(data) gives me an interesting graph, but half of it is useless to me because I just need to correlate between the descriptive and measures data.…
Sisymbrium
  • 11
  • 3
0
votes
1 answer

Add text to a ggpairs() scatterplot?

dumb but maddening question: How can I add text labels to my scatterplot points in a ggpairs(...) plot? ggpairs(...) is from the GGally library. The normal geom_text(...) function doesn't seem to be an option, as it take x,y arguments and ggpairs…
nghess
  • 105
  • 6
0
votes
1 answer

ggpairs error: Error in cor.test.default(x, y, method = method, use = use) : not enough finite observations

I am trying to create a scatterplot matrix using package GGally and ggpairs. In my dataset tol, I have several demographic variables that are categorical, and several that are continuous. I created a data frame with the variables I wanted and tried…
Zariah
  • 1
  • 2
0
votes
0 answers

Why do I get binary numbers instead of correlation values in GGally::ggpairs plot?

I just want to do a simple correlation matrix plot. If I do: library(GGally) data(flea) ggpairs(flea, columns = 2:4) I get these strange numbers in the top triangle: Why? First, I installed the CRAN version, and it happened to me. Right now, I…
0
votes
1 answer

Scale density plots in ggpairs based on total datapoints?

I'm plotting correlations in ggpairs and am splitting the data based on a filter. The density plots are normalising themselves on the number of data points in each filtered group. I would like them to normalise on the total number of data points in…
masher
  • 3,814
  • 4
  • 31
  • 35
0
votes
1 answer

How to plot parallel chart without scaling correctly?

I try to plot a parallel chart, that shows interactions of users while playing an audio file. The one y-axis shows the audio playback, the other axis the time the user is working on it. Problem: The maximum value of the left TranscrTime-axis should…
julianpoemp
  • 1,965
  • 3
  • 14
  • 29
0
votes
1 answer

Grey scale plot matrix in GGally

I want to create a plot matrix using GGally in greyscale. I have tried with functions like scale_colour_grey but GGally only recognises theme objects from ggplot2. Reproducible data and code are provided below: Cluster = c(1, 2, 1, 3, 1, 1, 1, 1, 1,…
Shakir
  • 343
  • 5
  • 23
0
votes
1 answer

How do I add a legend to a one column GGally::ggpairs plot?

I've created a GGally plot by group from one column of my data, however there is no legend to identify group names. How do I add a legend to the plot? My code: ggpairs(data[ ,c(2,5)], mapping = ggplot2::aes(color = group), upper =…
ryp
  • 37
  • 6
0
votes
1 answer

How to save a customized (only the lower triangle retained) ggpairs graph?

I used the gpairs_lower function from this answer to show only the lower triangle of a ggpairs matrix of plots. But now I have no idea how to save the resulting plot. The usual method to save a ggpairs plot does not work here: gpairs_lower <-…
Pooya
  • 145
  • 10