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
2 answers

How can I add line labels in ggparcoord in R?

Recently I've come across a problem when using ggparcoord() in R. I want to add a few labels for the lines in the parallel coordinates plot, but I seem to be unable to do it. Here is a MWE: A <- rnorm(200, 60, 200) B <- rnorm(200, 40, 126) C <-…
0
votes
1 answer

Ggplotly: Interactive component for only certain geom/subplot

I am attempting to produce an interactive scatterplot matrix as follows: library(GGally) library(ggplot2) library(plotly) dat <- mtcars[,1:3] p <- ggpairs(dat) ggplotly(p) The only change I am aiming to make is to only render the bottom left three…
user1830307
0
votes
0 answers

Using external variables with ggpairs

I'm writing functions for an R-package which will use a wrapper function for ggpairs from the package GGally to plot the output objects of the methods. I would like ggpairs to be able to use variables not part of the input object for defining…
J. Virta
  • 101
  • 3
0
votes
1 answer

Keep original y-axis titles or adjust distance between titles entered via yAxis Labels and the y axis

I would like to combine several scatterplots using ggmatrix from GGally (which I prefer to gridarrange because of the better alignment when the y-axis labels are of different size). My questions are Can I keep the original axis titles (y-axis from…
klaus_o
  • 3
  • 3
0
votes
1 answer

How to add the sig. and make font size varies with the size of correlation coefficient using ggpairs

I'm troubled by the plot below. Would someone give me some suggestions on how to creat this kind of plot?
Ryan
  • 1
  • 1
0
votes
1 answer

Getting GGally:ggparcoord to work

library(GGally) library(ggplot2) data(diamonds, package="ggplot2") diamonds.samp <- diamonds[sample(1:dim(diamonds)[1],100),] gpd <- ggparcoord(data = diamonds.samp,columns = c(1,5:10),groupColumn = 2) throws the error > Error: (list) Object can…
Make42
  • 12,236
  • 24
  • 79
  • 155
0
votes
2 answers

Create a ggplot2 survival curve with censored table

I am trying to create a Kaplan-Meier plot with 95% confidence bands plus having the censored data in a table beneath it. I can create the plot, but not the table. I get the error message: Error in grid.draw(both) : object 'both' not found. …
FTF
  • 181
  • 3
  • 11
0
votes
1 answer

ggplot/ally boxplots using for loop

I am trying to plot ggplot matrix, the box plot version works just fine but when I try to do the same with ggplot I fail miserably boxplot version: par(mfrow=c(3, 3)) for (scale in c("POMS", "POMS_post", "DERS", …
gofraidh
  • 673
  • 8
  • 26
0
votes
2 answers

Using grid.arrange with multiple plots

I am plotting several ggparcoord (from GGally package) subplots into one large plot. In general, all but one of the subplots derive from the same data set (x), and the last one comes from a different data set (y). I want each subplot to be a…
user4148072
0
votes
1 answer

How to produce an ANOVA matrix with R

I've the following dataset: Minutes <- rep(0:10, each=5) Minutes <- factor(Minutes) Subject <- rep(1:5,time=11) Measurement <- rnorm(55, mean=40, sd=7) df <- data.frame(Subject, Measurement, Minutes) I want an ANOVA matrix with p-values (like the…
Borexino
  • 802
  • 8
  • 26
0
votes
1 answer

color discrete groups of parallel coordinate plot in GGally package

To create a parallel coordinate plot I wanted to use ggparcoord() function in package GGally. The following codes show a reproducible example. set.seed(3674) k <- rep(1:3, each=30) x <- k + rnorm(mean=10, sd=.2,n=90) y <- -2*k + rnorm(mean=10,…
Mahbubul Majumder
  • 320
  • 1
  • 3
  • 13
0
votes
2 answers

change line width in parallel coordinate plot in R

My question is I want to change the line width of parallel coordinate according to a specific column, for example I want the record with type==mean become thicker than other individual lines. But it seems that ggparcoord does not have that option…
MYjx
  • 4,157
  • 9
  • 38
  • 53
0
votes
1 answer

ggpairs returns Error in x$widths : object of type 'closure' is not subsettable

I am using RStudio 0.98.978, and GGally 0.4.7. I am trying to use ggpairs, from the package GGally. Even when I attempt the most basic examples I receive the following error: Error in x$widths : object of type 'closure' is not subsettable An…
Scott Worland
  • 1,352
  • 1
  • 12
  • 15
0
votes
1 answer

Removing variable names with ggpairs

I'm trying to produce a specific plot using ggpairs of the GGally package with code like the following: data(tips, package="reshape") pm <- ggpairs(tips[,1:3], axisLabels="none") My problem is that I can't figure out how to remove the labels…
user2699676
  • 95
  • 1
  • 7
-1
votes
1 answer

How to highlight high correlations in ggpairs correlation matrix?

I am investigating the distribution of different variables and their correlations. Is there a way to highlight the high correlations? e.g. I can mark correlations greater than 0.8 as red and lower than -0.8 as blue. enter image description here
Noob GIS
  • 11
  • 1
1 2 3
13
14