Skip to content

Commit db13883

Browse files
committed
Add a sticker, but Rbuildignore it
1 parent 7306665 commit db13883

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.Rbuildignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
^.*\.Rproj$
22
^\.Rproj\.user$
3+
sticker.R
4+
inst/figures

inst/figures/openCyto.png

112 KB
Loading

sticker.R

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
library(ggcyto)
2+
library(hexSticker)
3+
setwd("~/Documents/Projects/openCyto")
4+
dataDir <- system.file("extdata",package="flowWorkspaceData")
5+
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
6+
p <- ggcyto(gs, aes(x = 38, y = DR), subset = "CD4") + geom_hex(bins = 64) + geom_gate()
7+
p <- p + ggtitle("") + facet_null()
8+
p <- as.ggplot(p)
9+
p <- p + theme_void() + theme_transparent()
10+
sticker(p, package="openCyto", p_size=8, s_x=1, s_y=0.9, s_width=1.3, s_height=1,
11+
filename="inst/figures/openCyto.png")
12+
system("open inst/figures/openCyto.png")

0 commit comments

Comments
 (0)