if (FALSE) {
library(beadplexr)
library(ggplot2)
data("lplex")
df <- lplex[[1]]
df |>
identify_analyte(.parameter = c("FSC-A", "SSC-A"),
.analyte_id = c("A", "B"),
.column_name = "analyte",
.method = "clara", .trim = 0.02) |>
ggplot() +
aes(x = `FSC-A`, y = `SSC-A`, colour = analyte) +
geom_point()
df |>
identify_analyte(.parameter = c("FSC-A", "SSC-A"),
.analyte_id = c("A", "B"),
.column_name = "analyte",
.method = "clara", .desc = TRUE) |>
ggplot() +
aes(x = `FSC-A`, y = `SSC-A`, colour = analyte) +
geom_point()
df |>
identify_analyte(.parameter = c("FSC-A", "SSC-A"),
.analyte_id = c("A", "B"),
.column_name = "analyte",
.method = "dbscan") |>
ggplot() +
aes(x = `FSC-A`, y = `SSC-A`, colour = analyte) +
geom_point()
}
Run the code above in your browser using DataLab