SomaLogic / SomaPlotr

A highly specialized suite of standardized plotting routines based on the "Grammar of Graphics" framework of mapping variables to aesthetics used in 'ggplot2'. Graphics types are biased towards visualizing SomaScan (proteomic) data.
https://somalogic.github.io/SomaPlotr/
Other
3 stars 3 forks source link

Fix `plotPDFlist()` and `plotCDFlist()` so that they can plot arbitrary length vectors #7

Closed stufield closed 11 months ago

stufield commented 12 months ago
stufield commented 12 months ago

The fix should be something like this:

 lapply(.data, "length<-", max(lengths(.data))) |>  # fix for jagged elements
    data.frame(check.names = FALSE) |>
    gather(key = !!label) |>
    drop_na(value) |>
    plotCDFbyGroup(apt = "value", group.var = !!label, main = main, ...)