Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jskm issue #5

Closed
Eistein1989 opened this issue Sep 17, 2023 · 2 comments
Closed

jskm issue #5

Eistein1989 opened this issue Sep 17, 2023 · 2 comments

Comments

@Eistein1989
Copy link

I tried to estimate the survival probabilities at define time point using the KM function and jskm package

p<- survfit(Surv(Composite.surv, Composite.event) ~ StageEcho_04, data=mydata)
jskm (p)

and it find out this error
"Error in element_line(linewidth = 0.5, colour = "black") :
unused argument (linewidth = 0.5)"

So I tried also to use the full formula to fix this aestetic problem but anyway, doesn't work

jskm( p, table=FALSE, xlabs="Time-to-event",
ylabs=NULL, xlims=c(0,max(p$time)), ylims=c(0,1),
surv.scale=c("default","percent"),
ystratalabs=names(p$strata),
ystrataname="Strata",
timeby=signif(max(p$time)/7,1), main="",
pval=FALSE, pval.size=5,
pval.coord=c(NULL,NULL),
pval.testname=F, marks=TRUE,
shape=3,
legend=TRUE,
legendposition=c(0.85,0.8), ci=FALSE, subs=NULL,
label.nrisk="Numbersatrisk", size.label.nrisk=10, linecols="black", dashed=FALSE, cumhaz=F,
cluster.option="None",
cluster.var=NULL, data=NULL,
cut.landmark=NULL,
showpercent=F, status.cmprsk=NULL, linewidth=0.5)

can you help me please?

@Eistein1989
Copy link
Author

here the code problem during package installation

  • installing source package 'jskm' ...
    ** package 'jskm' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Note: possible error in 'element_line(linewidth = 0.5, ': argomento non utilizzato (linewidth = 0.5)
    Note: possible error in 'element_line(linewidth = 0.5, ': argomento non utilizzato (linewidth = 0.5)
    Note: possible error in 'element_line(linewidth = 0.5, ': argomento non utilizzato (linewidth = 0.5)
    Note: possible error in 'element_line(linewidth = 0.5, ': argomento non utilizzato (linewidth = 0.5)
    Note: possible error in 'element_line(linewidth = 0.5, ': argomento non utilizzato (linewidth = 0.5)
    Note: possible error in 'element_line(linewidth = 0.5, ': argomento non utilizzato (linewidth = 0.5)

    ** help
    *** installing help indices
    converting help for package 'jskm'
    finding HTML links ... done
    jskm html
    svyjskm html
    *** copying figures
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded from temporary location
    *** arch - i386
    *** arch - x64
    ** testing if installed package can be loaded from final location
    *** arch - i386
    *** arch - x64
    ** testing if installed package keeps a record of temporary installation path
  • DONE (jskm)

@shanmdphd
Copy link

shanmdphd commented Sep 18, 2023

You probably need to update the ggplot2 package, update.packages("ggplot2") or update.packages(ask = FALSE, checkBuilt = TRUE).

FYI, https://stackoverflow.com/questions/74766790/error-in-element-linelinewidth-1-colour-black-unused-argument-linewi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants