From 0af0e5f18e811f7c7b56ffc09ccdbc72bd71922e Mon Sep 17 00:00:00 2001 From: Laurent Gatto Date: Mon, 11 Mar 2024 23:04:40 +0100 Subject: [PATCH] fix syntax --- R/plotting.R | 4 ++-- R/plotting3.R | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/R/plotting.R b/R/plotting.R index ab05258c..b84000c1 100644 --- a/R/plotting.R +++ b/R/plotting.R @@ -814,7 +814,7 @@ addLegend <- function(object, ##' Highlights a set of features of interest given as a ##' \code{FeaturesOfInterest} instance on a PCA plot produced by -##' code{plot2D} or \code{plot3D}. If none of the features of interest +##' \code{plot2D} or \code{plot3D}. If none of the features of interest ##' are found in the \code{MSnset}'s \code{featureNames}, an warning ##' is thrown. ##' @@ -831,7 +831,7 @@ addLegend <- function(object, ##' variable name to be used to label the features of ##' interest. This is only valid if \code{object} is an ##' \code{MSnSet}. Alternatively, if \code{TRUE}, then -##' \code{featureNames(object)} (or code{rownames(object)}, if +##' \code{featureNames(object)} (or \code{rownames(object)}, if ##' \code{object} is a \code{matrix}) are used. Default is ##' missing, which does not add any label.s ##' diff --git a/R/plotting3.R b/R/plotting3.R index 4102e930..67e3d466 100644 --- a/R/plotting3.R +++ b/R/plotting3.R @@ -36,6 +36,7 @@ setMethod("plot3D", "MSnSet", } invisible(xx) }) + ##' @param radius Radius of the spheres to be added to the ##' visualisation produced by \code{plot3D}. Default is 0.3 (i.e ##' \code{plot3D}'s \code{radius1} * 3), to emphasise the features