aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaeem Model <me@nmode.ca>2023-06-22 05:55:31 +0000
committerNaeem Model <me@nmode.ca>2023-06-22 05:55:31 +0000
commit11f7ef466d8861910904047fcc3bfc4bbbebba32 (patch)
tree42ca57a66c6f205270454450e94203eb223bea0d
parentc6f74becc7ecc0e908bf920b1abb28131b5edd3c (diff)
Shorten line length in doc examples
-rw-r--r--R/seqB.R6
-rw-r--r--man/seqB.Rd6
2 files changed, 8 insertions, 4 deletions
diff --git a/R/seqB.R b/R/seqB.R
index a64b598..8685f39 100644
--- a/R/seqB.R
+++ b/R/seqB.R
@@ -59,12 +59,14 @@
#' abline(h=1/(20/0.01+1), col="red")
#' abline(v=res1$Rhat, col="blue")
#' abline(v=Rpost$supp[loc], col="purple")
-#' legend("topright", legend=c("prior", "posterior", "posterior mean (Rhat)", "posterior mode"), col=c("red", "black", "blue", "purple"), lty=1)
+#' legend("topright", legend=c("prior", "posterior", "posterior mean (Rhat)", "posterior mode"),
+#' col=c("red", "black", "blue", "purple"), lty=1)
#' plot(Rpost$supp, Rpost$pmf, col="black", type="l", xlim=c(0.5, 1.5), xlab="", ylab="")
#' abline(h=1/(20/0.01+1), col="red")
#' abline(v=res1$Rhat, col="blue")
#' abline(v=Rpost$supp[loc], col="purple")
-#' legend("topright", legend=c("prior", "posterior", "posterior mean (Rhat)", "posterior mode"), col=c("red", "black", "blue", "purple"), lty=1)
+#' legend("topright", legend=c("prior", "posterior", "posterior mean (Rhat)", "posterior mode"),
+#' col=c("red", "black", "blue", "purple"), lty=1)
#'
#' ## ========================================================= ##
#' ## Compute Rhat using only the first five weeks of data ##
diff --git a/man/seqB.Rd b/man/seqB.Rd
index 0628a89..184f476 100644
--- a/man/seqB.Rd
+++ b/man/seqB.Rd
@@ -71,12 +71,14 @@ plot(Rpost$supp, Rpost$pmf, col="black", type="l", xlab="", ylab="")
abline(h=1/(20/0.01+1), col="red")
abline(v=res1$Rhat, col="blue")
abline(v=Rpost$supp[loc], col="purple")
-legend("topright", legend=c("prior", "posterior", "posterior mean (Rhat)", "posterior mode"), col=c("red", "black", "blue", "purple"), lty=1)
+legend("topright", legend=c("prior", "posterior", "posterior mean (Rhat)", "posterior mode"),
+ col=c("red", "black", "blue", "purple"), lty=1)
plot(Rpost$supp, Rpost$pmf, col="black", type="l", xlim=c(0.5, 1.5), xlab="", ylab="")
abline(h=1/(20/0.01+1), col="red")
abline(v=res1$Rhat, col="blue")
abline(v=Rpost$supp[loc], col="purple")
-legend("topright", legend=c("prior", "posterior", "posterior mean (Rhat)", "posterior mode"), col=c("red", "black", "blue", "purple"), lty=1)
+legend("topright", legend=c("prior", "posterior", "posterior mean (Rhat)", "posterior mode"),
+ col=c("red", "black", "blue", "purple"), lty=1)
## ========================================================= ##
## Compute Rhat using only the first five weeks of data ##