From 8dc94a9edab27fc98b63ae0376b47683a4089889 Mon Sep 17 00:00:00 2001 From: Matthijs Berends Date: Sat, 5 Nov 2022 09:31:19 +0100 Subject: [PATCH] documentation fix --- DESCRIPTION | 2 +- NEWS.md | 2 +- R/ggplot_pca.R | 6 ++++-- man/ggplot_pca.Rd | 6 ++++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 4af5bfe6..908338aa 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: AMR -Version: 1.8.2.9042 +Version: 1.8.2.9043 Date: 2022-11-05 Title: Antimicrobial Resistance Data Analysis Description: Functions to simplify and standardise antimicrobial resistance (AMR) diff --git a/NEWS.md b/NEWS.md index 83aefb2a..2f314622 100755 --- a/NEWS.md +++ b/NEWS.md @@ -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! diff --git a/R/ggplot_pca.R b/R/ggplot_pca.R index ddfb20c7..027b6ab9 100755 --- a/R/ggplot_pca.R +++ b/R/ggplot_pca.R @@ -86,10 +86,12 @@ #' #' # old base R plotting method: #' biplot(pca_result) -#' # new ggplot2 plotting method using this package: -#' ggplot_pca(pca_result) #' +#' # new ggplot2 plotting method using this package: #' if (require("ggplot2")) { +#' ggplot_pca(pca_result) +#' +#' # still extendible with any ggplot2 function #' ggplot_pca(pca_result) + #' scale_colour_viridis_d() + #' labs(title = "Title here") diff --git a/man/ggplot_pca.Rd b/man/ggplot_pca.Rd index 7e948260..d071e21f 100644 --- a/man/ggplot_pca.Rd +++ b/man/ggplot_pca.Rd @@ -131,10 +131,12 @@ if (require("dplyr")) { # old base R plotting method: biplot(pca_result) - # new ggplot2 plotting method using this package: - ggplot_pca(pca_result) + # new ggplot2 plotting method using this package: if (require("ggplot2")) { + ggplot_pca(pca_result) + + # still extendible with any ggplot2 function ggplot_pca(pca_result) + scale_colour_viridis_d() + labs(title = "Title here")