FBartos / zcurve

zcurve R package for assessing the reliability and trustworthiness of published literature with the z-curve method
https://fbartos.github.io/zcurve
10 stars 1 forks source link

plot zcurve object using ggplot(2) #17

Closed Yefeng0920 closed 10 months ago

Yefeng0920 commented 10 months ago

Hey, two great researchers @DominikVogel @FBartos, just want to know if the ggplot version of plotting zcurve object is available? If not, can you instruct me how to do it?

Best, Yefeng

FBartos commented 10 months ago

Hi @Yefeng0920 ,

It's not in the CRAN version yet -- I will check whether there are further changes needed and aim to getting it to CRAN sometime next week.

Cheers, Frantisek

FBartos commented 10 months ago

So, the ggplot figure option was now added to the new CRAN version (2.4.0)

library(zcurve)
fit.EM  <- zcurve(OSC.z)
plot(fit.EM, plot_type = "ggplot")