I would like the logticks to look a bit like the figure at the bottom of this page: http://www.cyto.purdue.edu/archive/flowcyt/research/cytotech/apopto/data/chap16.htm
I am using the ggcyto package (https://github.com/RGLab/ggcyto) for this, which in turn uses ggplot2.
But adding annotation_logticks() gives ticks on the inside of the x and y axes (see attachment), whereas I think it looks better with the ticks on the outside. Is there any way to do this? I couldn't find the answer in the documentation but maybe I am not looking in the right place?
(This is flow cytometry data, which I load into R using Bioconductor packages, and plot using ggcyto. I make the plot using this code, and I am not sure how I can make a MWE with flow cytometry data, but if you think that is relevant, I have posted the data and all the code to generate the plot here for an unrelated issue: https://github.com/RGLab/ggcyto/issues/13 )
ggcyto(gated.selected, aes(x = `PI-A`, y = `BV421-A`)) +
geom_hex(bins = 200) +
geom_gate(qg.names) +
labs(x = "PI", y = "Annexin V") +
geom_stats() +
annotation_logticks()
Edit: after trying the link in Henrik's comment:
p <- ggcyto(gated.gs[1], aes(x = `PI-A`, y = `BV421-A`)) +
geom_hex(bins = 200) +
geom_gate(qg.names) +
labs(x = "PI", y = "Annexin V") +
geom_stats() +
annotation_logticks(short = unit(-0.1, "cm"), mid = unit(-0.2, "cm"), long = unit(-0.3, "cm"))
p.build.gtable <- ggplot_gtable(ggplot_build(p))
p.build.gtable$layout$clip
p.build.gtable$layout$clip <- c("on", "off", "off", "off", "off", "off", "off", "off", "off")
grid.draw(p.build.gtable)