You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that when dealing with logical variables, the order in which plots are laid out is sometimes incorrect making them difficult to read.
Consider the example given in the ggpairs documentation. When I change the time to be logical, notice how the left-middle plot inverses the order of the plots and is not consistent with the right-middle plot.
library(GGally)
#> Loading required package: ggplot2#> Registered S3 method overwritten by 'GGally':#> method from #> +.gg ggplot2
library(tidyverse)
data(tips, package="reshape")
ggpairs(tips, columns= c(1, 6, 2))
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
tips2<-tips %>% mutate(time=time=='Dinner')
ggpairs(tips2, columns= c(1, 6, 2))
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
I believe that when dealing with logical variables, the order in which plots are laid out is sometimes incorrect making them difficult to read.
Consider the example given in the
ggpairs
documentation. When I change thetime
to be logical, notice how the left-middle plot inverses the order of the plots and is not consistent with the right-middle plot.Created on 2023-01-12 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: