Skip to content

Adding scenario counts to boxplots #587

Open
@brutschki

Description

@brutschki

It would be great to add a feature for boxplot visualization where scenarios are counted and scenario counts are displayed below. In R this could be solved like this:

  • Write a function that counts the scenarios and determines the position of the label on the y-axis:
    count <- function(x){return(c(y = min(x), label = length(x)))}

  • and then within ggplot use "stat_summary" function (https://ggplot2.tidyverse.org/reference/stat_summary.html):
    stat_summary(
    fun.data = count,
    geom = "text", position = position_dodge(width=0.75))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions