Skip to content

Commit a041b2f

Browse files
author
Raphael
committed
fixed plot bug
1 parent a4e0e63 commit a041b2f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ inst/doc
55
doc
66
Meta
77
.Rproj.user
8-
tests/testthat/Rplots.pdf

R/plot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ plot.Distribution <- function(x, fun=c('pdf','cdf'), npoints = 3000,
117117
if (any(c("cdf", "survival", "hazard","cumhazard") %in% fun) & !("cdf" %in% colnames(plotStructure))) {
118118
plotStructure$cdf <- x$cdf(plotStructure$points)
119119
}
120-
if (any(c("pdf", "hazard") %in% fun) %in% fun) {
120+
if (any(c("pdf", "hazard") %in% fun)) {
121121
plotStructure$pdf <- x$pdf(plotStructure$points)
122122
}
123123

0 commit comments

Comments
 (0)