library(beadplexr)
library(dplyr)
library(ggplot2)
data("lplex")
lplex[[1]] |>
filter(`FSC-A` > 3.2e5L) |>
mutate(population = "1") |>
trim_population(.parameter = c("FSC-A", "SSC-A"), .column_name = "population", .trim = 0.1) |>
ggplot() +
aes(x = `FSC-A`, y = `SSC-A`, colour = population) +
geom_point()
lplex[[1]] |>
filter(`FSC-A` > 3.2e5L) |>
mutate(population = "1") |>
trim_population(.parameter = c("FSC-A", "SSC-A"),
.column_name = "population", .trim = 0.8) |>
ggplot() +
aes(x = `FSC-A`, y = `SSC-A`, colour = population) +
geom_point()
Run the code above in your browser using DataLab