jranke / chemCal
Showing 1 of 9 files from the diff.
Other files ignored by Codecov
DESCRIPTION has changed.
check.log is new.
build.log has changed.
GNUmakefile has changed.
NEWS.md has changed.
.Rbuildignore has changed.
test.log is new.
man/calplot.lm.Rd has changed.

@@ -1,7 +1,8 @@
Loading
1 1
calplot <- function(object, 
2 2
  xlim = c("auto", "auto"), ylim = c("auto", "auto"), 
3 -
  xlab = "Concentration", ylab = "Response", alpha = 0.05,
4 -
  varfunc = NULL)
3 +
  xlab = "Concentration", ylab = "Response",
4 +
  legend_x = "auto", 
5 +
  alpha = 0.05, varfunc = NULL)
5 6
{
6 7
  UseMethod("calplot")
7 8
}
@@ -9,6 +10,7 @@
Loading
9 10
calplot.default <- function(object, 
10 11
  xlim = c("auto","auto"), ylim = c("auto","auto"), 
11 12
  xlab = "Concentration", ylab = "Response",
13 +
  legend_x = "auto",
12 14
  alpha=0.05, varfunc = NULL)
13 15
{
14 16
  stop("Calibration plots only implemented for univariate lm objects.")
@@ -16,8 +18,9 @@
Loading
16 18
17 19
calplot.lm <- function(object,
18 20
  xlim = c("auto","auto"), ylim = c("auto","auto"), 
19 -
  xlab = "Concentration", ylab = "Response", alpha=0.05,
20 -
  varfunc = NULL)
21 +
  xlab = "Concentration", ylab = "Response",
22 +
  legend_x = "auto", 
23 +
  alpha=0.05, varfunc = NULL)
21 24
{
22 25
  if (length(object$coef) > 2)
23 26
    stop("More than one independent variable in your model - not implemented")
@@ -47,6 +50,7 @@
Loading
47 50
  yrange.auto <- range(c(0,pred.lim))
48 51
  if (ylim[1] == "auto") ylim[1] <- yrange.auto[1]
49 52
  if (ylim[2] == "auto") ylim[2] <- yrange.auto[2]
53 +
  if (legend_x[1] == "auto") legend_x <- min(object$model[[2]])
50 54
  plot(1,
51 55
    type = "n", 
52 56
    xlab = xlab,
@@ -68,7 +72,7 @@
Loading
68 72
  } else {
69 73
  matlines(newdata[[1]], conf.lim, lty = c(1, 3, 3), 
70 74
    col = c("black", "green4", "green4"))
71 -
  legend(min(x), 
75 +
  legend(legend_x,
72 76
    max(pred.lim, na.rm = TRUE), 
73 77
    legend = c("Fitted Line", "Confidence Bands", 
74 78
        "Prediction Bands"), 
Files Coverage
R 53.25%
Project Totals (4 files) 53.25%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading