Skip to content

Commit

Permalink
addressing R CMD check error
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyyeoCH committed Jan 13, 2025
1 parent e38b84f commit 65f41fb
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions vignettes/introduction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -860,28 +860,38 @@ arrows(-.25, 2, 0, .2, lwd = 2)
text(-.25, 2.2, expression("Prob" * (Delta < +5 * "%")))
```

Alternatively, we could use the R-package function `myPlotDiff()` to achieve the
Alternatively, we could use the R-package function `plotBetaDiff()` to achieve the
the same result in far fewer lines of code, see
Figure~\@ref(fig:ex1:betadiff1:myPlotDiff)).
Figure~\@ref(fig:ex1:betadiff1:plotBetadiff)).

```{r, echo = FALSE}
ex1_betadiff_1_myplotdiff_cap <- paste(
ex1_betadiff_1_plotBetaDiff_cap <- paste(

Check warning on line 868 in vignettes/introduction.Rmd

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=vignettes/introduction.Rmd,line=868,col=1,[object_length_linter] Variable and function names should not be longer than 30 characters.
"The distribution of the difference in PET-CR rates amongst the novel",
"combination group and the historical control. Here, we see that the probability",
"of a go decision (green) is much more likely than the probability of a no go",
"decision (red)."
)
```

```{r ex1:betadiff1:myPlotDiff, echo=TRUE, fig.cap = ex1_betadiff_1_myplotdiff_cap}
myPlotDiff(c(5.75 + 55, 4.25 + 80 - 55), c(75, 75), 0.15, 0.05, 1, 0,
xlab = "(Combo Response) - (Control Response)"
)
legend("topright", c("Prob. of No Go", "Prob. of Go"),
pch = 15,
col = c("red", "green"), bty = "n"
```{r ex1:betadiff1:plotBetaDiff, echo=TRUE, fig.cap = ex1_betadiff_1_plotBetaDiff_cap}
plotBetaDiff(
parY = parY,
parX = parX,
Go_cut = 0.3,
Stop_cut = 0.15, # below a difference of 15%, is an unsuccessful trial
shade = TRUE,
note = TRUE
)
# plotBetaDiff(c(5.75 + 55, 4.25 + 80 - 55), c(75, 75), 0.15, 0.05, 1, 0,
# xlab = "(Combo Response) - (Control Response)"

Check warning on line 888 in vignettes/introduction.Rmd

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=vignettes/introduction.Rmd,line=888,col=5,[commented_code_linter] Commented code should be removed.
# )
# legend("topright", c("Prob. of No Go", "Prob. of Go"),
# pch = 15,

Check warning on line 891 in vignettes/introduction.Rmd

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=vignettes/introduction.Rmd,line=891,col=5,[commented_code_linter] Commented code should be removed.
# col = c("red", "green"), bty = "n"
# )
arrows(.5, 2, .22, 1, lwd = 2)
text(.5, 2.2, expression("Prob" * (Delta > +15 * "%")))
Expand Down

0 comments on commit 65f41fb

Please sign in to comment.