You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@aminadibi I just recently added ggslopegraph2 to the package and it uses some different approaches to this problem. You're welcome to give it a try if you like. This should work for you and includes the data you provided in your example. Please note I'm also very curious as to whether your last datapoint is an error? The code will work either way but if that is an accurate value it is so far up the scale the other datapoints will be hard to read. For purposes of clarity I made it .0307 for now.
devtools::install_github("leeper/slopegraph")
library(slopegraph)
# A tibble: 14 x 3aminadibi<-tibble::as.tibble(read.table(header=TRUE,
text="X__1 SE_withOPTIMAL SE_withoutOPTIMALHR_male 0.0340 0.0357HR_age 0.0186 0.0211HR_nowmsk 0.0408 0.0450HR_oxygen 0.0457 0.0439HR_fev1pre 0.0416 0.0412HR_statin 0.0433 0.0413HR_azithromycin 0.0387 0.0359HR_LAMA 0.0511 0.0456HR_LABA 0.0480 0.0504HR_ICS 0.0507 0.0756HR_sgrq 0.0130 0.0132HR_BMI10 0.0268 0.0290HR_OPTIMAL 0.0512 0.0307"))
#newaminadibi<-reshape2::melt(aminadibi, id="X__1", variable.name="SE", value.name="SurvivalRate")
head(newaminadibi)
ggslopegraph2(newaminadibi, SE, SurvivalRate, X__1,
title="data points are close to zero #21",
linecolor="light gray",
subtitle="With defaults")
newaminadibi$rSurvivalRate<- signif(newaminadibi$SurvivalRate, 2)
ggslopegraph2(newaminadibi, SE, rSurvivalRate, X__1,
title="data points are close to zero #21",
linecolor="light gray",
subtitle="With signif = 2")
For example, using the following dataset,
will result in:
The text was updated successfully, but these errors were encountered: