Skip to content

Commit ea5b300

Browse files
Merge pull request #87 from nutriverse:dev
re-factor test classifier plot function; fix #86
2 parents f41f663 + a679fcf commit ea5b300

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

R/04-test_classifier.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,13 @@ plot.lqasSim <- function(x, ...) {
359359

360360
plot(
361361
x = c(x$dLower, x$dUpper),
362-
y = c(0, 1),
362+
y = c(0, 100),
363363
pch = "",
364364
xlab = "Indicator Proportion (%)",
365365
ylab = "Probability of Classification",
366366
frame.plot = FALSE,
367-
xlim = c(x$pLower, x$pUpper),
368-
ylim = c(0, 1)
367+
xlim = c(x$pLower * 100, x$pUpper * 100),
368+
ylim = c(0, 100)
369369
)
370370

371371
points(p, z[ , 1], pch = 6, cex= 0.5, col = "gray")
@@ -376,8 +376,8 @@ plot.lqasSim <- function(x, ...) {
376376
lines(lowess(p, z[ , 2], f = 0.02), col = "orange", lwd = 2)
377377
lines(lowess(p, z[ , 3], f = 0.02), col = "green", lwd = 2)
378378

379-
abline(v = x$dLower, lty = 3)
380-
abline(v = x$dUpper, lty = 3)
379+
abline(v = x$dLower * 100, lty = 3)
380+
abline(v = x$dUpper * 100, lty = 3)
381381

382382
legend(
383383
x = "bottomright",

0 commit comments

Comments
 (0)