Skip to content

Commit

Permalink
README updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kassambara authored Apr 6, 2017
1 parent 4a99efc commit f52d29a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,12 @@ fit <- survfit(Surv(time, status) ~ sex, data = lung)
ggsurvplot(fit, data = lung)
```

Censor shape can be changed:
Censor shape can be changed as follow:

```{r ggplot2-basic-survival-plot-censor, fig.height = 4, fig.width = 5}
ggsurvplot(fit, data = lung, censor.shape=124)
ggsurvplot(fit, data = lung, censor.shape="|")
```

Shape values need to be passed numerically, see http://sape.inf.usi.ch/quick-reference/ggplot2/shape

"|", which is a sensible shape for a censor, has the value 124.

### Customized survival curves

Expand Down

0 comments on commit f52d29a

Please sign in to comment.