ahmohamed / lipidr
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
DESCRIPTION has changed.

@@ -285,36 +285,39 @@
Loading
285 285
}
286 286
287 287
.plot_molecule_sd <- function(dlong, measure, color, mol_dimname) {
288 +
  molecule_names = setNames(dlong$Molecule, as.character(dlong[[mol_dimname]]))
288 289
  ggplot(
289 290
    dlong,
290 291
    aes(!!sym(mol_dimname), !!measure, fill = !!color, color = !!color)
291 292
  ) +
292 293
    stat_summary(fun = sd, geom = "bar") +
293 -
    scale_x_discrete(labels=as.character(dlong$Molecule)) +
294 +
    scale_x_discrete(labels= ~ molecule_names[as.character(.x)]) +
294 295
    facet_wrap(~filename, scales = "free_y") + coord_flip() +
295 296
    theme(axis.text.x = element_text(angle = -90, vjust = 0.5)) +
296 297
    ylab(paste("SD of", as_label(measure)))
297 298
}
298 299
299 300
.plot_molecule_cv <- function(dlong, measure, color, mol_dimname) {
301 +
  molecule_names = setNames(dlong$Molecule, as.character(dlong[[mol_dimname]]))
300 302
  ggplot(
301 303
    dlong,
302 304
    aes(!!sym(mol_dimname), !!measure, fill = !!color, color = !!color)
303 305
  ) +
304 306
    stat_summary(fun = .cv, geom = "bar") + coord_flip() +
305 -
    scale_x_discrete(labels=as.character(dlong$Molecule)) +
307 +
    scale_x_discrete(labels= ~ molecule_names[as.character(.x)]) +
306 308
    facet_wrap(~filename, scales = "free_y") +
307 309
    theme(axis.text.x = element_text(angle = -90, vjust = 0.5)) +
308 310
    ylab(paste("%CV of", as_label(measure)))
309 311
}
310 312
311 313
.plot_molecule_boxplot <- function(dlong, measure, color, mol_dimname) {
314 +
  molecule_names = setNames(dlong$Molecule, as.character(dlong[[mol_dimname]]))
312 315
  ggplot(
313 316
    dlong,
314 317
    aes(!!sym(mol_dimname), !!measure, fill = !!color, color = !!color)
315 318
  ) +
316 319
    geom_boxplot(outlier.size = 0.5, outlier.alpha = 0.3) + coord_flip() +
317 -
    scale_x_discrete(labels=as.character(dlong$Molecule)) +
320 +
    scale_x_discrete(labels= ~ molecule_names[as.character(.x)]) +
318 321
    facet_wrap(~filename, scales = "free_y") +
319 322
    theme(axis.text.x = element_text(angle = -90, vjust = 0.5))
320 323
}
Files Coverage
R 94.38%
Project Totals (17 files) 94.38%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 1%
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