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

creating labels in parallel coordinates plot with R, ggparcoord()

I want to have labels only one time on the left of each line in a parallel coordinates plot. I only managed to get labels on every instances so it doesn't look clear. ## test data set data2 <- data.frame( "geneSymbol" = paste("Gene", 1:10), …
wbart
  • 17
  • 3
0
votes
1 answer

R ggpairs: Getting ggplot2's categorical box plots to change geom_point color in correlation matrix

I'm developing a R visual tool for correlation matrices and am stuck getting the entire plot to come in blue. I'm trying to get it to work no matter what dataset columns you throw at it. I've developed a few different ways to color code for various…
0
votes
0 answers

How can I customize font on correlogram for publication using ggpairs (GGally)?

I am struggling to customize some aspects of ggpairs correlogram. Here's my code and the correlogram it produces: lower_plots <- function(data, mapping, ...) { ggplot(data = data, mapping = mapping) + geom_point(size = 1.5, alpha = 0.5) + …
chaparral
  • 3
  • 2
0
votes
0 answers

How to make hierarchical facet labels in ggpairs?

I'm working on a pairs plot where I want to use hierarchical facet labels. ggpairs takes its facet labels from the column names of the input data.frame or from the columnLabels-argument. However, from these options I don't see a way to apply an…
saQuist
  • 416
  • 7
  • 19
0
votes
0 answers

GGally only density plot no scatter in the figure

This is the figure Im getting what I would like to get is only the density instead of the scatter, how do i get that this ? The function that is used here is part of the MOFA2 package I tried tinkering around the source code by charging the…
PesKchan
  • 868
  • 6
  • 14
0
votes
0 answers

GGally equivalent to caret featurePlot()?

Is there an equivalent function or a "simple" approach to use the GGally functions to reproduce the same plot layout as the caret::featurePlot()? One dependent/target variable on the y-axes, many independent/factor variables on the x-axes with facet…
bmacwilliams
  • 165
  • 6
0
votes
1 answer

Using column names in ggparcoord

I have a really basic problem with ggparcoord plot function from Ggally package. On this site https://r-graph-gallery.com/parallel-plot-ggally.html there is the following code for the "most basic" plot, which works fine: #…
MDStat
  • 355
  • 2
  • 17
0
votes
0 answers

Error in eval(mapping$x, data) in R: Error in stats::model.frame(formula = x, data = y) : object 'x' not found GGally::GGpairs function

I am trying to customize my ggpairs function and I for that I am using a data.frame that I have imported from keggle. Here is a minumum reproducible example: BMI = c(1,2,3,4,5,6,7,8) Glucose = c(0.4, 0.3, 0.6, 0.4, 0.7, 1, 0.9, 0.5) example_df =…
Pablo Rodriguez
  • 233
  • 1
  • 10
0
votes
1 answer

ggpairs what is the name of the column with the facets?

I am trying to add text to a ggpairs plot. I have created my own data frame with columns for the x and y positions and the labels. However, I do not know what to name the column that contains the facet labels. In the context of the example below: I…
serwaah
  • 3
  • 3
0
votes
1 answer

Moving text of multi-row (faceted) ggplot2 with sub-categories

Any suggestions on how to align text of the levels within a variable closer to the variable name? I am plotting model coefficients using the package GGally and broom.mixed which automatically incorporates faceting based on the covariates I'm…
Charlie_J
  • 89
  • 6
0
votes
1 answer

Error in R: could not find function "ggpairs"

rom a tutorial I'm using, the exercise is to run this code below. library(datasets) data(iris) View(iris) library(GGally) ggpairs(iris, mapping=ggplot2::aes(colour = Species)) However, when I run it I get the following error: Error in…
Lisa Write
  • 13
  • 1
  • 5
0
votes
1 answer

How to change y axis from count to prop?

With ggplot2 and GGally, I created this bar chart with proportions: ggplot(mtcars, aes(x = factor(cyl), by = 1)) + geom_bar(fill = "steelblue", stat = "prop") + geom_text(aes(label = scales::percent(after_stat(prop), accuracy = 1)), stat =…
writer_typer
  • 708
  • 7
  • 25
0
votes
3 answers

Individual y-axis for each level in parallel coordinates plot

I'm trying to generate a parallel coordinates plot, where each variable has its own axis. For instance: So far, I've used the function ggparcoord() from the package GGally. However, as far as I can tell, it does not allow each variable to have its…
0
votes
1 answer

add confidence interval values to GGally:ggpairs plot

Is it possible to add confidence interval values to GGally:ggpairs plot? Thought that it would be possible via GGally::ggpairs(data, upper = list(continuous = ggcorr)) with an adjusted version of ggcorr(), but I have been unable to understand the…
ReadBeard
  • 101
  • 4
0
votes
3 answers

adding arrows to show the direction in a pair plot (connected scatter plot / phase portrait)

library(GGally) f=data.frame(x=sin(2*pi*(1:100)/100), y=cos(2*pi*(1:100)/100)) ggpairs(f) A time series can be plot like the above with the time axis collapsed (lower left). But it loses the directional information on this graph. Is there an easy…
user1424739
  • 11,937
  • 17
  • 63
  • 152