Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 10 11:28
    larmarange opened #431
  • Nov 10 11:24
    larmarange opened #430
  • Nov 09 09:00
    guangingmai opened #429
  • Oct 25 16:07
    schloerke synchronize #428
  • Oct 25 16:04
    github-actions[bot] synchronize #428
  • Oct 25 15:58
    schloerke synchronize #428
  • Oct 25 15:56
    schloerke synchronize #428
  • Oct 25 15:55
    schloerke synchronize #428
  • Oct 25 15:54
    schloerke synchronize #428
  • Oct 25 15:51
    schloerke opened #428
  • Oct 25 15:38
    schloerke labeled #394
  • Oct 25 15:36
    schloerke labeled #405
  • Oct 25 15:36
    schloerke closed #406
  • Oct 25 15:35
    schloerke closed #412
  • Oct 25 15:33
    schloerke labeled #425
  • Oct 25 15:33
    schloerke unlabeled #417
  • Oct 25 15:33
    schloerke labeled #417
  • Oct 25 15:33
    schloerke labeled #415
  • Oct 25 15:31
    schloerke labeled #417
  • Oct 25 15:30
    schloerke closed #422
Barret Schloerke
@schloerke
much better
... now to remove all of slack :-(
elbamos
@elbamos
its basically slack for public use, like slack itself is for working teams where you need to create private channels and upload media, etc
Barret Schloerke
@schloerke
yes!
(like thesis work)
elbamos
@elbamos
yeah; like, i have an airbnb business with some partners, and we have a slack room, and we cretate separate channels that are partner-private, or include our employees, etc.
we have a squatter now, and we have a channel where we upload the funniest security cam video of him
Barret Schloerke
@schloerke
lol
Barret Schloerke
@schloerke
Brandon Sherman
@shermstats
I'm confused. GGally 1.1 requires grid 3.3, which is a base R package that seems to be on 3.2
how do you install it?
Barret Schloerke
@schloerke
I have R version 3.3.0. Is your version 3.2.*?
ill remove this requirement shortly
Brandon Sherman
@shermstats
thanks! I updated to 3.3.0 and it worked
Barret Schloerke
@schloerke
@hengrumay want to chat here so we can iterate faster?
hengrumay
@hengrumay
Hi Barret
I am having issues using Knitr to generate ggpairs figure
elbamos
@elbamos
Hey. I'm working on a function that plots images at various points. I've been doing this with base plotting because it was non-obvious to me how to do it in ggplot. Does anyone have suggestions?
This message was deleted
Barret Schloerke
@schloerke
example altered from here: http://stackoverflow.com/questions/9917049/inserting-an-image-to-ggplot2
library(ggplot2)
library(png)
library(grid)
img <- readPNG(system.file("img", "Rlogo.png", package="png"))
g <- rasterGrob(img, interpolate=TRUE)

qplot(1:10, 1:10, geom="blank") + 
  annotation_custom(g, xmin = 2.5, xmax = 5, ymin = 2.5, ymax = 5) + 
  geom_point()
no clue how it’ll scale with that many photos
the example i gave looks like it’d make a layer for each image
elbamos
@elbamos
Yeah it does, i had tried that, it didn't really function with multiple images. Also since it's an annotation layer, you end up with an empty plot.
Barret Schloerke
@schloerke
so just images and nothing else?
have an output?
Barret Schloerke
@schloerke
then again, with a couple hundred logos (lol), it prints just fine
p <- qplot(1:10, 1:10, geom= "blank”)

for (i in 1:200) { 
  rand <- runif(2, min = 0, max = 9)
  p <- p + annotation_custom(
    g, 
    xmin = rand[1], ymin = rand[2], 
    xmax = rand[1] + 1, ymax = rand[2] + 1
  )
}
p
Screen Shot 2016-06-10 at 11.25.26 AM.png
elbamos
@elbamos
@schloerke Hah, you led me to an annotation_raster function that I guess got added a version or two ago. I don't know why I thought that wouldn't work. Anyway, thanks
ashish
@a5hi5h_twitter
I see you have extensive documentation for creating custom correlation plot at: ggobi/ggally#139
Is it possible to extend this function by having asterisk for p-values when you have grouping within your data as shown in this plot http://ggobi.github.io/ggally/#ggallyggscatmat ? Thanks
vive1981
@vive1981
Hi, ggpairs - could not find function "aes" in rnw document
Could anyone help me in fixing this issue? R version 3.4.3
Barret Schloerke
@schloerke
@a5hi5h_twitter I need to look at how correlations are done. Currently I have not implemented a function to produce what you are asking for.
@vive1981 maybe try library(ggplot2) then library(GGally). hope that helps!
vive1981
@vive1981
Tks Barret
Fabian Scheipl
@fabian-s
Is ggpairs broken with newish versions of ggplot2 / rlang? I get a weird error message even from running the basic ggpairs example, triggered by the assertion on non-standard variable names in GGally:::make_ggmatrix_plot_obj --seems like ggplot2- mapping now contains quosures for the variable names which get picked up as mode "call" by the assertion? E.g.: p <- ggplot(iris, aes(Sepal.Length, Sepal.Width)) + geom_point() and then lapply(p$mapping, mode) == "call") is all TRUE, so nonCallVals <- which(lapply(mapping, mode) == "call") makes ggpairs abort for any input....
Barret Schloerke
@schloerke
@fabian-s I can't reproduce the error on my end. Can you send me a reprex that produces it? what is your session info as well?
Fabian Scheipl
@fabian-s
the reprex would be to run example(ggpairs), my sessionInfo is: ```
Barret Schloerke
@schloerke
# reprex::reprex({
install.packages(c("rlang", "ggplot2", "GGally"), dependencies = TRUE)
#> Installing packages into '/Users/barret/z_R_library'
#> (as 'lib' is unspecified)
#> 
#> The downloaded binary packages are in
#>  /var/folders/0k/bxg5lhr92sq74mb1d446ql540000gp/T//Rtmpm8YtlR/downloaded_packages

library(ggplot2)
library(GGally)

ggpairs(iris, aes(color = Species), 3:5)
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
devtools::session_info()
#> Session info -------------------------------------------------------------
#>  setting  value                       
#>  version  R version 3.4.4 (2018-03-15)
#>  system   x86_64, darwin15.6.0        
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_US.UTF-8                 
#>  tz       America/Los_Angeles         
#>  date     2018-03-28
#> Packages -----------------------------------------------------------------
#>  package      * version date       source         
#>  backports      1.1.2   2017-12-13 CRAN (R 3.4.3) 
#>  base         * 3.4.4   2018-03-15 local          
#>  colorspace     1.3-2   2016-12-14 CRAN (R 3.4.0) 
#>  compiler       3.4.4   2018-03-15 local          
#>  datasets     * 3.4.4   2018-03-15 local          
#>  devtools       1.13.5  2018-02-18 CRAN (R 3.4.3) 
#>  digest         0.6.15  2018-01-28 CRAN (R 3.4.3) 
#>  evaluate       0.10.1  2017-06-24 CRAN (R 3.4.1) 
#>  formatR        1.5     2017-04-25 CRAN (R 3.4.0) 
#>  GGally       * 1.3.2   2017-08-02 CRAN (R 3.4.1) 
#>  ggplot2      * 2.2.1   2016-12-30 CRAN (R 3.4.0) 
#>  graphics     * 3.4.4   2018-03-15 local          
#>  grDevices    * 3.4.4   2018-03-15 local          
#>  grid           3.4.4   2018-03-15 local          
#>  gtable         0.2.0   2016-02-26 CRAN (R 3.4.0) 
#>  htmltools      0.3.6   2017-04-28 CRAN (R 3.4.0) 
#>  knitr          1.20    2018-02-20 CRAN (R 3.4.1) 
#>  labeling       0.3     2014-08-23 CRAN (R 3.4.0) 
#>  lazyeval       0.2.1   2017-10-29 cran (@0.2.1)  
#>  magrittr       1.5     2014-11-22 CRAN (R 3.4.0) 
#>  memoise        1.1.0   2017-04-21 CRAN (R 3.4.0) 
#>  methods      * 3.4.4   2018-03-15 local          
#>  munsell        0.4.3   2016-02-13 CRAN (R 3.4.0) 
#>  pillar         1.1.0   2018-01-14 CRAN (R 3.4.3) 
#>  plyr           1.8.4   2016-06-08 CRAN (R 3.4.0) 
#>  RColorBrewer   1.1-2   2014-12-07 CRAN (R 3.4.0) 
#>  Rcpp           0.12.16 2018-03-13 cran (@0.12.16)
#>  reshape        0.8.7   2017-08-06 cran (@0.8.7)  
#>  reshape2       1.4.3   2017-12-11 cran (@1.4.3)  
#>  rlang          0.2.0   2018-02-20 CRAN (R 3.4.3) 
#>  rmarkdown      1.9     2018-03-01 cran (@1.9)    
#>  rprojroot      1.3-2   2018-01-03 CRAN (R 3.4.3) 
#>  scales         0.5.0   2017-08-24 CRAN (R 3.4.1) 
#>  stats        * 3.4.4   2018-03-15 local          
#>  stringi        1.1.6   2017-11-17 cran (@1.1.6)  
#>  stringr        1.3.0   2018-02-19 cran (@1.3.0)  
#>  tibble         1.4.2   2018-01-22 CRAN (R 3.4.3) 
#>  tools          3.4.4   2018-03-15 local          
#>  utils        * 3.4.4   2018-03-15 local          
#>  withr          2.1.2   2018-03-15 cran (@2.1.2)  
#>  yaml           2.1.18  2018-03-08 cran (@2.1.18)
# })
Fabian Scheipl
@fabian-s

`R version 3.4.3 (2017-11-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

Matrix products: default
BLAS: /usr/lib/atlas-base/atlas/libblas.so.3.0
LAPACK: /usr/lib/lapack/liblapack.so.3.0

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=de_DE.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=de_DE.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] GGally_1.3.2

loaded via a namespace (and not attached):
[1] Rcpp_0.12.16 reshape_0.8.7 grid_3.4.3
[4] plyr_1.8.4 gtable_0.2.0 scales_0.5.0.9000
[7] ggplot2_2.2.1.9000 pillar_1.2.1 rlang_0.2.0.9001
[10] lazyeval_0.2.1 RColorBrewer_1.1-2 tools_3.4.3
[13] munsell_0.4.3 yaml_2.1.18 compiler_3.4.3
[16] colorspace_1.3-2 tibble_1.4.2 `

Barret Schloerke
@schloerke
Sorry @fabian-s . But with a dev version of ggplot2 and rlang, I can't keep up with their changes.
I'll definitely need to support it when it becomes public
Fabian Scheipl
@fabian-s
yeah, I understand that completely. so now you got a head's up at least, trouble coming your way ;)
Barret Schloerke
@schloerke
fair lol
ggally has been put on the back seat. I'll see what I can do this weekend. Would be nice to release soon.
do you know when ggplot2 is up for release?
Fabian Scheipl
@fabian-s
no, I don't, sorry. thanks for the package, i use it a lot!
willinda2009
@willinda2009
Hi Barrent,
Is that possible to add the sign of significance into the chart as you shown on March 28 10:39 for each of the Species?
Thank you!
Barret Schloerke
@schloerke
Unfortunately, no. A custom function could be used instead. But there is no current implementation with the significant stars.