documentation fix

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2022-11-05 09:31:19 +01:00
1 parent 3b652983b7
commit 8dc94a9eda
4 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
Package: AMR Package: AMR
Version: 1.8.2.9042 Version: 1.8.2.9043
Date: 2022-11-05 Date: 2022-11-05
Title: Antimicrobial Resistance Data Analysis Title: Antimicrobial Resistance Data Analysis
Description: Functions to simplify and standardise antimicrobial resistance (AMR) Description: Functions to simplify and standardise antimicrobial resistance (AMR)
+1 -1
View File
@@ -1,4 +1,4 @@
# AMR 1.8.2.9042 # AMR 1.8.2.9043
This version will eventually become v2.0! We're happy to reach a new major milestone soon! This version will eventually become v2.0! We're happy to reach a new major milestone soon!
+4 -2
View File
@@ -86,10 +86,12 @@
#' #'
#' # old base R plotting method: #' # old base R plotting method:
#' biplot(pca_result) #' biplot(pca_result)
#' # new ggplot2 plotting method using this package:
#' ggplot_pca(pca_result)
#' #'
#' # new ggplot2 plotting method using this package:
#' if (require("ggplot2")) { #' if (require("ggplot2")) {
#' ggplot_pca(pca_result)
#'
#' # still extendible with any ggplot2 function
#' ggplot_pca(pca_result) + #' ggplot_pca(pca_result) +
#' scale_colour_viridis_d() + #' scale_colour_viridis_d() +
#' labs(title = "Title here") #' labs(title = "Title here")
+4 -2
View File
@@ -131,10 +131,12 @@ if (require("dplyr")) {
# old base R plotting method: # old base R plotting method:
biplot(pca_result) biplot(pca_result)
# new ggplot2 plotting method using this package:
ggplot_pca(pca_result)
# new ggplot2 plotting method using this package:
if (require("ggplot2")) { if (require("ggplot2")) {
ggplot_pca(pca_result)
# still extendible with any ggplot2 function
ggplot_pca(pca_result) + ggplot_pca(pca_result) +
scale_colour_viridis_d() + scale_colour_viridis_d() +
labs(title = "Title here") labs(title = "Title here")