Public repertoire visualisation

# S3 method for immunr_public_repertoire
vis(.data, .plot = c("freq", "clonotypes"), ...)



Public repertoire, an output from pubRep.


A string specifying the plot type:

- "freq" for visualisation of the distribution of occurrences of clonotypes and their frequencies using vis_public_frequencies.

- "clonotypes" for visualisation of public clonotype frequenciy correlations between pairs of samples using vis_public_clonotypes


Further arguments passed vis_public_frequencies or vis_public_clonotypes, depending on the ".plot" argument.


A ggplot2 object.


immdata$data <- lapply(immdata$data, head, 500)
pr <- pubRep(immdata$data, .verbose = FALSE)
vis(pr, "freq")
#> Warning: Removed 64256 rows containing non-finite values (stat_boxplot).

vis(pr, "freq", .type = "none")
#> Warning! Visualising 5884 points. Too many points may take a while to visualise depending on your hardware. We highly recommend you to use other types: "mean" or "boxplot"
#> Warning: Removed 64256 rows containing missing values (geom_point).

vis(pr, "clonotypes", 1, 2)
#> `geom_smooth()` using formula 'y ~ x'
#> Warning: Removed 69 rows containing missing values (geom_smooth).
#> Warning: у 'max' нет не пропущенных аргументов; возвращаю -Inf