Skip to content

Suggestion for improvement  #8

@krijkamp

Description

@krijkamp

The current image of the Tornado plot shows the parameter names as coded in R on the y-axis. However, for publication it is nicer to have a description of the parameter.

Therefore, an option to rename the parameter for plotting would be a nice addition.

Something like this:

Consider your structure of the owsa_nbm has in the parameter column the following items

owsa_nmb

c_trtA
c_S
c_TrtB

library(dplyr)

you like to rename them

owsa_nmb <- owsa_nmb %>%
mutate(parameter = recode(parameter,
"c_trtA" = "Treatment A",
"c_trtB" = "Treatment B",
"c_S" = "Costs Sick"))

owsa_nmb$parameter

Or having a option: parameter description, where the way to mutate the parameter name is added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions