Browse code

rebuild documentation

- due to changes in struct (removal of unicode)

Gavin Rhys Lloyd authored on 02/02/2024 10:50:50
Showing 1 changed files
... ...
@@ -25,7 +25,7 @@ A plot of the percent variance and cumulative percent variance for the component
25 25
 \section{Inheritance}{
26 26
 
27 27
 A \code{pca_scree_plot} object inherits the following \code{struct} classes: \cr\cr
28
-\code{pca_scree_plot()} ⭢ \code{chart()} ⭢ \code{struct_class()}
28
+\verb{[pca_scree_plot]} >> \verb{[chart]} >> \verb{[struct_class]}
29 29
 }
30 30
 
31 31
 \examples{
Browse code

update documentation

- get_description moved to struct and updated

Gavin Rhys Lloyd authored on 31/01/2024 09:48:31
Showing 1 changed files
... ...
@@ -7,7 +7,7 @@
7 7
 pca_scree_plot(max_pc = 15, ...)
8 8
 }
9 9
 \arguments{
10
-\item{max_pc}{(numeric, integer) The maximum number of components to include in the plot. The default is \code{15}.}
10
+\item{max_pc}{(numeric, integer) The maximum number of components to include in the plot. The default is \code{15}.\cr}
11 11
 
12 12
 \item{...}{Additional slots and values passed to \code{struct_class}.}
13 13
 }
... ...
@@ -22,6 +22,15 @@ struct object
22 22
 \description{
23 23
 A plot of the percent variance and cumulative percent variance for the components of a PCA model.
24 24
 }
25
+\section{Inheritance}{
26
+
27
+A \code{pca_scree_plot} object inherits the following \code{struct} classes: \cr\cr
28
+\code{pca_scree_plot()} ⭢ \code{chart()} ⭢ \code{struct_class()}
29
+}
30
+
25 31
 \examples{
32
+M = pca_scree_plot(
33
+      max_pc = 15)
34
+
26 35
 C = pca_scree_plot()
27 36
 }
Browse code

add max_pca param

allows reducing size of scree plot when PCA model has lots of components

Gavin Rhys Lloyd authored on 19/07/2023 10:39:16
Showing 1 changed files
... ...
@@ -4,9 +4,11 @@
4 4
 \alias{pca_scree_plot}
5 5
 \title{Scree plot}
6 6
 \usage{
7
-pca_scree_plot(...)
7
+pca_scree_plot(max_pc = 15, ...)
8 8
 }
9 9
 \arguments{
10
+\item{max_pc}{(numeric, integer) The maximum number of components to include in the plot. The default is \code{15}.}
11
+
10 12
 \item{...}{Additional slots and values passed to \code{struct_class}.}
11 13
 }
12 14
 \value{
Browse code

add outputs to auto generated documentation (#58)

Gavin Rhys Lloyd authored on 07/07/2021 09:37:19 • GitHub committed on 07/07/2021 09:37:19
Showing 1 changed files
... ...
@@ -10,7 +10,10 @@ pca_scree_plot(...)
10 10
 \item{...}{Additional slots and values passed to \code{struct_class}.}
11 11
 }
12 12
 \value{
13
-A  \code{pca_scree_plot} object.
13
+A  \code{
14
+pca_scree_plot
15
+} object. This object has no \code{output} slots.
16
+See \code{\link[struct]{chart_plot}} in the \code{struct} package to plot this chart object.
14 17
 
15 18
 struct object
16 19
 }
Browse code

Release 3 12 candidate (#32)

* fix base=10 regardless of input (see #15)

class constructor was always setting base to 10 instead of the input value

* merge bug fix 1.01 into dev (#19)

* bug fix issue #7

Correctly re-order the sample_meta column for colouring samples in the dendrogram plot

* version bump

bug fix issue #7

* fix for https://github.com/computational-metabolomics/structToolbox/issues/18 (#20)

correctly reorder the factor labels so that the control group always ends up in the denominator for the fold change calculation.

* fix for https://github.com/computational-metabolomics/structToolbox/issues/18

fixed incorrect length check on matching class labels.

* Issue 17 ttest factor (#21)

* convert to factor if not one already

fix for issue #17

* update roxygen version

* fix for issue #9 (#22)

changed from lapply to vapply and used drop=FALSE to ensure compatibility with a single factor.

* allow user to set lambda (#24)

- lambda changed to input parameter. NULL = uses pmp optimisation
- model_predict now uses the set value of lambda, or lambda_opt if used.
- documentation updated

* Feature non parametric fold change (#26)

* add "median" method

based on DOI: 10.1080/00949650212140 can now calcuate fold changes equivalent to using medians and corresponding confidence intervals

* update documentation

* update median method

now correctly calculates ratio of medians

* use wilcox for paired median intervals

make use of wilcox.test to estimate intervals for the median when using median for paired samples

* Issue 23 filter by name (#27)

* fix for #23

moved all model_apply functionality to model_predict so that model_train and model_predict can be used as well as model_apply

* update documentation

* Update mean_of_medians.R (#29)

fix for #28
- correctly loop over all levels in the named factor

* Feature documentation 3 12 (#31)

* update documentation

Description and inputs now pulled from the object definitions for consistency.

* fix definition of label_features

allows NULL and description updated

* replace non ascii characters

* export mixed_effect object

* use correct object name to generate documentation

* export mixed_effect object

* remove non ascii characters

* update tests with new object name

* add import for capture.output

* add import for capture.output

* use pca_biplot in tests

chart was renamed

* add utils import

* update struct dependency version

* update documentation

* update news, version bump

Gavin Rhys Lloyd authored on 25/10/2020 08:50:13 • GitHub committed on 25/10/2020 08:50:13
Showing 1 changed files
... ...
@@ -2,18 +2,20 @@
2 2
 % Please edit documentation in R/PCA_plotfcns.R
3 3
 \name{pca_scree_plot}
4 4
 \alias{pca_scree_plot}
5
-\title{pca_scree_plot_plot class}
5
+\title{Scree plot}
6 6
 \usage{
7 7
 pca_scree_plot(...)
8 8
 }
9 9
 \arguments{
10
-\item{...}{additional slots and values passed to struct_class}
10
+\item{...}{Additional slots and values passed to \code{struct_class}.}
11 11
 }
12 12
 \value{
13
+A  \code{pca_scree_plot} object.
14
+
13 15
 struct object
14 16
 }
15 17
 \description{
16
-Line plot showing percent variance and cumulative percent variance for the computed components.
18
+A plot of the percent variance and cumulative percent variance for the components of a PCA model.
17 19
 }
18 20
 \examples{
19 21
 C = pca_scree_plot()
Browse code

rename to use underscores instead of dot

Gavin Rhys Lloyd authored on 11/02/2020 13:19:28
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,20 @@
1
+% Generated by roxygen2: do not edit by hand
2
+% Please edit documentation in R/PCA_plotfcns.R
3
+\name{pca_scree_plot}
4
+\alias{pca_scree_plot}
5
+\title{pca_scree_plot_plot class}
6
+\usage{
7
+pca_scree_plot(...)
8
+}
9
+\arguments{
10
+\item{...}{additional slots and values passed to struct_class}
11
+}
12
+\value{
13
+struct object
14
+}
15
+\description{
16
+Line plot showing percent variance and cumulative percent variance for the computed components.
17
+}
18
+\examples{
19
+C = pca_scree_plot()
20
+}