【发布时间】:2021-06-20 19:31:24
【问题描述】:
我正在尝试在 ggcyto(ggplot2) 图上设置 x 限制,但它似乎不起作用。我设置的 x 限制一直向右挤压,并且有很多空白空间。不知道还有什么可以尝试的。我尝试设置 biexp 比例,但看起来一样。
library(ggcyto)
library(ggplot2)
library(flowCore)
fs <- read.flowSet(fcs_files, path=(dir_path))
ggcyto(fs[[2]],
aes(x = "FSC-A",
y = "SSC-A")
) +
geom_hex(bins = 26) +
xlab("") +
ylab("") +
theme(
strip.text = element_text(size = 5),
) +
scale_x_continuous(breaks = c(0, 18000), labels = function(x) formatC(x, format="e", digits =1), limits=c(0, 20000))) #+
#scale_x_flowjo_biexp(maxValue = 20000, widthBasis = -10)
添加limits=c(0, 20000) 给我这个警告:Warning message: Removed 14 rows containing non-finite values (stat_binhex).
【问题讨论】:
标签: r ggplot2 bioconductor