Skip to content

Commit

Permalink
Add a sticker, but Rbuildignore it
Browse files Browse the repository at this point in the history
  • Loading branch information
gfinak committed Jul 9, 2018
1 parent 7306665 commit db13883
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
^.*\.Rproj$
^\.Rproj\.user$
sticker.R
inst/figures
Binary file added inst/figures/openCyto.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions sticker.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
library(ggcyto)
library(hexSticker)
setwd("~/Documents/Projects/openCyto")
dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
p <- ggcyto(gs, aes(x = 38, y = DR), subset = "CD4") + geom_hex(bins = 64) + geom_gate()
p <- p + ggtitle("") + facet_null()
p <- as.ggplot(p)
p <- p + theme_void() + theme_transparent()
sticker(p, package="openCyto", p_size=8, s_x=1, s_y=0.9, s_width=1.3, s_height=1,
filename="inst/figures/openCyto.png")
system("open inst/figures/openCyto.png")

0 comments on commit db13883

Please sign in to comment.