Questions tagged [ggpairs]

71 questions
0
votes
1 answer

How to mark certain point in ggpairs?

Here's minimal working problem. Consider the following data frame DF <- data.frame( y=1:10, x=10:1, z=rep(5,10), a=11:20 ) Assume y is my response. Now, for every pair plot (y,_) in ggpairs(DF) I want to mark point 1, 5 and 10 with a…
Marcel Braasch
  • 1,083
  • 1
  • 10
  • 19
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
1 answer

Using ggpairs to get correlation values

I used ggpairs to get the following plots: I want to know which pair has the largest absolute correlation. However, how am I supposed to ascertain this when some of the pairs, such as Power-Span, Power-Length, Span-Length, etc., are covered by…
The Pointer
  • 2,226
  • 7
  • 22
  • 50
0
votes
1 answer

How can I organize data to get facet.by to work in ggpairs?

I'm trying to create a panel of paired boxplots using ggpaired. I have 2 sets of scores from 7 measures across 6 participants. When I use ggpaired to plot just 1 measure I can get it to work with no problem: p <- ggpaired(data, x = "group", y =…
0
votes
1 answer

ggpaired change line color based on a condition

I would like to visualize my data with the use of ggpaired. This function adds a line between paired data. However, I would like to change the color of the line based on a condition. I have the following graph and the color of the lines should be…
ghs101
  • 103
  • 6
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 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
2 answers

R: pairs plot of one variable with the rest of the variables

I would like to generate a correlation plot with my "True" variable pairs with all of the rest (People variables). I am pretty sure this has been brought up somewhere but solutions I have found do not work for me. library(ggplot2) set.seed(0) dt =…
Rachel Zhang
  • 562
  • 6
  • 20
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
-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 4
5