Skip to content

Commit

Permalink
Update R/msaGaugeLinearity.R
Browse files Browse the repository at this point in the history
Co-authored-by: Don van den Bergh <[email protected]>
  • Loading branch information
JTPetter and vandenman authored Jul 19, 2024
1 parent 84ed3bc commit 31a6669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/msaGaugeLinearity.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ msaGaugeLinearity <- function(jaspResults, dataset, options, ...) {
linearity <- abs(coefficientSlope) * options[["manualProcessVariationValue"]]
percentLin <- (linearity / options[["manualProcessVariationValue"]]) * 100
plusOrMin <- if (coefficientSlope > 0) "+" else "-"
regressionEquation <- gettextf("Bias = %.2f %s %.2f * Reference value", coefficientConstant, plusOrMin, abs(coefficientSlope))
regressionEquation <- gettextf("Bias = %1$.2f %2$s %3$.2f * Reference value", coefficientConstant, plusOrMin, abs(coefficientSlope))

p1 <- ggplot2::ggplot(data = df2, mapping = ggplot2::aes(x = Ref, y = Bias)) +
ggplot2::geom_hline(yintercept = 0, lty = 2, color = "grey") +
Expand Down

0 comments on commit 31a6669

Please sign in to comment.