Closed gilmeriken closed 4 years ago
Hi, looks like a good suggestion. I'll try and add it this week. I'll probably change things so that you can pass along a column name that contains labels formatted anyway you like.
Thanks!
Should be available in github via
devtools::install_github("ibecav/CGPfunctions", build_vignettes = TRUE, upgrade = "ask")
Some examples of how to use it...
newcancer$datalabel <- paste0(newcancer$Survival, "%")
newggslopegraph(newcancer, Year, Survival, Type, Data.label = datalabel)
newcancer <-
newcancer %>%
mutate(datalabel = case_when(Type == "Thyroid" ~ "Humma",
TRUE ~ NA_character_))
newggslopegraph(newcancer, Year, Survival, Type, Data.label = datalabel)
First, thanks for creating newggslope graph, it looks great.
How do I control the number format of the Measurement? For example, what if I want the graph to display "X %", or if I want integers displayed with a thousands separator?