Skip to content

Commit 6c03571

Browse files
committed
docs: fix cross-links to plotthis functions
1 parent 59c825b commit 6c03571

30 files changed

+159
-140
lines changed

R/cccplot.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
#' @param show_column_names Whether to show the column names in the heatmap. Default is TRUE.
6262
#' Only used when `plot_type` is "heatmap".
6363
#' @param ... Other arguments passed to the specific plot function.
64-
#' * For `Network`, see [plotthis::Network].
65-
#' * For `ChordPlot`, see [plotthis::ChordPlot].
66-
#' * For `Heatmap`, see [plotthis::Heatmap].
67-
#' * For `SankeyPlot`, see [plotthis::SankeyPlot].
68-
#' * For `DotPlot`, see [plotthis::DotPlot].
64+
#' * For `Network`, see [plotthis::Network()].
65+
#' * For `ChordPlot`, see [plotthis::ChordPlot()].
66+
#' * For `Heatmap`, see [plotthis::Heatmap()].
67+
#' * For `SankeyPlot`, see [plotthis::SankeyPlot()].
68+
#' * For `DotPlot`, see [plotthis::DotPlot()].
6969
#' @return A ggplot object or a list if `combine` is FALSE
7070
#' @importFrom utils getFromNamespace
7171
#' @importFrom rlang syms sym

R/celldimplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#' @param object A seurat object
55
#' @param reduction Name of the reduction to plot (for example, "umap").
66
#' @param graph Specify the graph name to add edges between cell neighbors to the plot.
7-
#' @param ... Other arguments passed to [plotthis::DimPlot].
7+
#' @param ... Other arguments passed to [plotthis::DimPlot()].
88
#' @return A ggplot object or a list if `combine` is FALSE
99
#' @export
1010
#' @importFrom SeuratObject DefaultDimReduc Embeddings Graphs Reductions

R/cellstatplot.R

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@
5050
#' @param name The name of the 'pies'/'heatmap' plot, shown as the name of the main legend. Default is NULL.
5151
#' @param ylab The y-axis label. Default is NULL.
5252
#' @param ... Other arguments passed to the specific plot function.
53-
#' * For `bar` plot, see [plotthis::BarPlot].
54-
#' * For `circos` plot, see [plotthis::CircosPlot].
55-
#' * For `pie` chart, see [plotthis::PieChart].
56-
#' * For `pies` plot, see [plotthis::Heatmap].
57-
#' * For `heatmap` plot, see [plotthis::Heatmap].
58-
#' * For `ring`/`donut` plot, see [plotthis::RingPlot].
59-
#' * For `trend` plot, see [plotthis::TrendPlot].
60-
#' * For `area` plot, see [plotthis::AreaPlot].
61-
#' * For `sankey`/`alluvial` plot, see [plotthis::SankeyPlot].
62-
#' * For `radar` plot, see [plotthis::RadarPlot].
63-
#' * For `spider` plot, see [plotthis::SpiderPlot].
64-
#' * For `violin` plot, see [plotthis::ViolinPlot].
65-
#' * For `box` plot, see [plotthis::BoxPlot].
53+
#' * For `bar` plot, see [plotthis::BarPlot()].
54+
#' * For `circos` plot, see [plotthis::CircosPlot()].
55+
#' * For `pie` chart, see [plotthis::PieChart()].
56+
#' * For `pies` plot, see [plotthis::Heatmap()].
57+
#' * For `heatmap` plot, see [plotthis::Heatmap()].
58+
#' * For `ring`/`donut` plot, see [plotthis::RingPlot()].
59+
#' * For `trend` plot, see [plotthis::TrendPlot()].
60+
#' * For `area` plot, see [plotthis::AreaPlot()].
61+
#' * For `sankey`/`alluvial` plot, see [plotthis::SankeyPlot()].
62+
#' * For `radar` plot, see [plotthis::RadarPlot()].
63+
#' * For `spider` plot, see [plotthis::SpiderPlot()].
64+
#' * For `violin` plot, see [plotthis::ViolinPlot()].
65+
#' * For `box` plot, see [plotthis::BoxPlot()].
6666
#'
6767
#' @return A ggplot object or a list if `combine` is FALSE
6868
#' @importFrom rlang sym syms

R/clonaldivplot.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ ClonalDiversity <- function(
104104
#' @param xlab The x-axis label. Default is NULL.
105105
#' @param ylab The y-axis label. Default is NULL.
106106
#' @param ... Other arguments passed to the specific plot function.
107-
#' * For "bar", [plotthis::BarPlot]
108-
#' * For "box", [plotthis::BoxPlot]
109-
#' * For "violin", [plotthis::ViolinPlot]
107+
#' * For "bar", [plotthis::BarPlot()].
108+
#' * For "box", [plotthis::BoxPlot()].
109+
#' * For "violin", [plotthis::ViolinPlot()].
110110
#' @return A ggplot object or a list if `combine` is FALSE
111111
#' @export
112112
#' @importFrom tidyr separate
@@ -214,7 +214,7 @@ ClonalDiversityPlot <- function(
214214
#' @param nrow The number of rows in the combined plot. Default is NULL.
215215
#' @param ncol The number of columns in the combined plot. Default is NULL.
216216
#' @param byrow Whether to fill the combined plot by row. Default is TRUE.
217-
#' @param ... Other arguments passed to [plotthis::RarefactionPlot].
217+
#' @param ... Other arguments passed to [plotthis::RarefactionPlot()].
218218
#' @return A ggplot object or a list if `combine` is FALSE
219219
#' @importFrom plotthis RarefactionPlot
220220
#' @export

R/clonalgeneusageplot.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
#' @param row_annotation_side The side of the row annotation. Default is "right".
2323
#' @param row_annotation_agg A list of row annotation aggregation functions.
2424
#' @param ... Other arguments passed to the specific plot function.
25-
#' * For "bar", [plotthis::BarPlot]
26-
#' * For "heatmap", [plotthis::Heatmap]
27-
#' * For "circos", [plotthis::ChordPlot]
28-
#' * For "chord", [plotthis::ChordPlot]
25+
#' * For "bar", [plotthis::BarPlot()].
26+
#' * For "heatmap", [plotthis::Heatmap()].
27+
#' * For "circos", [plotthis::ChordPlot()].
28+
#' * For "chord", [plotthis::ChordPlot()].
2929
#' @return A ggplot object or a list if `combine` is FALSE
3030
#' @importFrom rlang := syms
3131
#' @importFrom dplyr mutate rename slice_max summarise pull filter all_of

R/clonalpositionalplot.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
#' @param facet_nrow The number of rows in the facet grid. Default is NULL.
3636
#' @param aspect.ratio The aspect ratio of the plot. Default is NULL.
3737
#' @param ... Other arguments passed to the specific plot function.
38-
#' * For "bar", [plotthis::BarPlot]
39-
#' * For "line", [plotthis::LinePlot]
40-
#' * For "heatmap", [plotthis::Heatmap]
41-
#' * For "box", [plotthis::BoxPlot]
42-
#' * For "violin", [plotthis::ViolinPlot]
38+
#' * For "bar", [plotthis::BarPlot()].
39+
#' * For "line", [plotthis::LinePlot()].
40+
#' * For "heatmap", [plotthis::Heatmap()].
41+
#' * For "box", [plotthis::BoxPlot()].
42+
#' * For "violin", [plotthis::ViolinPlot()].
4343
#' @return A ggplot object or a list if `combine` is FALSE
4444
#' @export
4545
#' @importFrom ggplot2 element_blank
@@ -220,9 +220,9 @@ ClonalPositionalPlot <- function (
220220
#' @param aspect.ratio The aspect ratio of the plot. Default is NULL.
221221
#' @param facet_ncol The number of columns in the facet grid. Default is NULL.
222222
#' @param ... Other arguments passed to the specific plot function.
223-
#' * For "bar", [plotthis::BarPlot]
224-
#' * For "line", [plotthis::LinePlot]
225-
#' * For "heatmap", [plotthis::Heatmap]
223+
#' * For "bar", [plotthis::BarPlot()].
224+
#' * For "line", [plotthis::LinePlot()].
225+
#' * For "heatmap", [plotthis::Heatmap()].
226226
#' @return A ggplot object or a list if `combine` is FALSE
227227
#' @export
228228
#' @importFrom tidyr pivot_longer separate unite

R/clonalstatplot.R

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
#' @param order The order of the x-axis items or groups. Default is an empty list.
2121
#' It should be a list of values. The names are the column names, and the values are the order.
2222
#' @param ... Other arguments passed to the specific plot function.
23-
#' * For `bar` plot, see [plotthis::BarPlot].
24-
#' * For `box` plot, see [plotthis::BoxPlot].
25-
#' * For `violin` plot, see [plotthis::ViolinPlot].
23+
#' * For `bar` plot, see [plotthis::BarPlot()].
24+
#' * For `box` plot, see [plotthis::BoxPlot()].
25+
#' * For `violin` plot, see [plotthis::ViolinPlot()].
2626
#' @return A ggplot object or a list if `combine` is FALSE
2727
#' @importFrom tidyr separate
2828
#' @importFrom plotthis BarPlot BoxPlot ViolinPlot
@@ -143,9 +143,9 @@ ClonalVolumePlot <- function(
143143
#' @param ytrans The transformation to apply to the y-axis. Default is "identity".
144144
#' @param theme_args The theme arguments to be passed to the plot function.
145145
#' @param ... Other arguments passed to the specific plot function.
146-
#' * For `trend` plot, see [plotthis::Histogram].
147-
#' * For `histogram` plot, see [plotthis::Histogram].
148-
#' * For `density` plot, see [plotthis::DensityPlot].
146+
#' * For `trend` plot, see [plotthis::Histogram()].
147+
#' * For `histogram` plot, see [plotthis::Histogram()].
148+
#' * For `density` plot, see [plotthis::DensityPlot()].
149149
#' @return A ggplot object or a list if `combine` is FALSE
150150
#' @importFrom tidyr full_seq complete
151151
#' @importFrom dplyr group_modify
@@ -234,7 +234,7 @@ ClonalAbundancePlot <- function(
234234
#' @param chain indicate if both or a specific chain should be used - e.g. "both",
235235
#' "TRA", "TRB", "TRD", "TRG", "IGH", or "IGL" to specify a specific chain.
236236
#' @param plot_type The type of plot to use. Default is "bar".
237-
#' Possible values are "histogram" and "density".
237+
#' Possible values are "box", "violin" and "density".
238238
#' @param x_nbreaks The number of breaks for the x-axis. Default is 10.
239239
#' @param group_by The column name in the meta data to group the cells. Default: "Sample"
240240
#' @param facet_by The column name in the meta data to facet the plots. Default: NULL
@@ -245,7 +245,10 @@ ClonalAbundancePlot <- function(
245245
#' @param ylab The y-axis label.
246246
#' @param position The position of the bars for bar plot on the x-axis. Default is "dodge".
247247
#' @param ... Other arguments passed to the specific plot function.
248-
#' * For
248+
#' * For `bar` plot, see [plotthis::BarPlot()].
249+
#' * For `box` plot, see [plotthis::BoxPlot()].
250+
#' * For `violin` plot, see [plotthis::ViolinPlot()].
251+
#' * For `density` plot, see [plotthis::DensityPlot()].
249252
#' @return A ggplot object or a list if `combine` is FALSE
250253
#' @importFrom stats quantile
251254
#' @importFrom rlang syms
@@ -601,9 +604,9 @@ DummyClonalScatterPlot <- function(df, title, group_by, scatter_cor, size_by, ..
601604
#' @param ncol The number of columns in the combined plot. Default is NULL.
602605
#' @param byrow Whether to fill the combined plot by row. Default is TRUE.
603606
#' @param ... Other arguments passed to the specific plot function.
604-
#' * For `scatter` plot, see [plotthis::ScatterPlot].
605-
#' * For `venn` plot, see [plotthis::VennDiagram].
606-
#' * For `upset` plot, see [plotthis::UpsetPlot].
607+
#' * For `scatter` plot, see [plotthis::ScatterPlot()].
608+
#' * For `venn` plot, see [plotthis::VennDiagram()].
609+
#' * For `upset` plot, see [plotthis::UpsetPlot()].
607610
#' @return A ggplot object or a list if `combine` is FALSE
608611
#' @export
609612
#' @importFrom utils combn
@@ -783,10 +786,10 @@ ClonalResidencyPlot <- function(
783786
#' @param order The order of the x-axis items or groups. Default is an empty list.
784787
#' It should be a list of values. The names are the column names, and the values are the order.
785788
#' @param ... Other arguments passed to the specific plot function.
786-
#' * For `bar` plot, see [plotthis::BarPlot].
787-
#' * For `ring` plot, see [plotthis::RingPlot].
788-
#' * For `box` plot, see [plotthis::BoxPlot].
789-
#' * For `violin` plot, see [plotthis::ViolinPlot].
789+
#' * For `bar` plot, see [plotthis::BarPlot()].
790+
#' * For `ring` plot, see [plotthis::RingPlot()].
791+
#' * For `box` plot, see [plotthis::BoxPlot()].
792+
#' * For `violin` plot, see [plotthis::ViolinPlot()].
790793
#' @return A ggplot object or a list if `combine` is FALSE
791794
#' @importFrom dplyr %>% mutate summarise ungroup n
792795
#' @importFrom tidyr pivot_longer separate
@@ -981,7 +984,7 @@ ClonalCompositionPlot <- function(
981984
#' @param cluster_columns Whether to cluster the columns. Default is FALSE.
982985
#' @param show_row_names Whether to show the row names. Default is TRUE.
983986
#' @param show_column_names Whether to show the column names. Default is TRUE.
984-
#' @param ... Other arguments passed to the specific plot function [plotthis::Heatmap].
987+
#' @param ... Other arguments passed to the specific plot function [plotthis::Heatmap()].
985988
#' @return A ComplexHeatmap object or a list if `combine` is FALSE
986989
#' @importFrom stats as.dist
987990
#' @importFrom rlang syms
@@ -1111,8 +1114,8 @@ ClonalOverlapPlot <- function(
11111114
#' @param orderby An expression to order the clones by. Default is NULL.
11121115
#' Note that the clones will be ordered by the value of this expression in descending order.
11131116
#' @param ... Other arguments passed to the specific plot function.
1114-
#' * For `chord` plot, see [plotthis::ChordPlot].
1115-
#' * For `sankey` plot, see [plotthis::SankeyPlot].
1117+
#' * For `trend` plot, see [plotthis::TrendPlot()].
1118+
#' * For `sankey` plot, see [plotthis::SankeyPlot()].
11161119
#' @return A ggplot object or a list if `combine` is FALSE
11171120
#' @importFrom rlang parse_expr
11181121
#' @importFrom dplyr %>% summarise arrange desc mutate rename

R/clustreeplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#'
44
#' @description This function generates a clustree plot from a data frame or a Seurat object.
55
#' @param object The data frame or Seurat object
6-
#' @param ... Other arguments passed to [plotthis::ClustreePlot]
6+
#' @param ... Other arguments passed to [plotthis::ClustreePlot()]
77
#' @return A ggplot object or a list if `combine` is FALSE
88
#' @export
99
#' @examples

R/enrichmentplot.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
#' @param xlab The x-axis label. Default is NULL.
4646
#' @param ylab The y-axis label. Default is NULL.
4747
#' @param ... Other arguments passed to the specific plot function.
48-
#' * For "bar", [plotthis::BarPlot]
49-
#' * For "dot", [plotthis::DotPlot]
50-
#' * For "lollipop", [plotthis::LollipopPlot]
51-
#' * For "network", [plotthis::EnrichNetwork]
52-
#' * For "enrichmap", [plotthis::EnrichMap]
53-
#' * For "wordcloud", [plotthis::WordCloudPlot]
54-
#' * For "comparison", [plotthis::DotPlot]
48+
#' * For "bar", [plotthis::BarPlot()].
49+
#' * For "dot", [plotthis::DotPlot()].
50+
#' * For "lollipop", [plotthis::LollipopPlot()].
51+
#' * For "network", [plotthis::EnrichNetwork()].
52+
#' * For "enrichmap", [plotthis::EnrichMap()].
53+
#' * For "wordcloud", [plotthis::WordCloudPlot()].
54+
#' * For "comparison", [plotthis::DotPlot()].
5555
#' @importFrom rlang sym syms
5656
#' @importFrom stringr str_wrap
5757
#' @importFrom dplyr %>% group_by slice_min ungroup

R/featurestatplot.R

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
#' @param ylab The y-axis label.
2121
#' @param x_text_angle The angle of the x-axis text. Only used when `plot_type` is "violin", "bar", or "box".
2222
#' @param ... Other arguments passed to the plot functions.
23-
#' * For `plot_type` "violin", the arguments are passed to [plotthis::ViolinPlot].
24-
#' * For `plot_type` "box", the arguments are passed to [plotthis::BoxPlot].
25-
#' * For `plot_type` "bar", the arguments are passed to [plotthis::BarPlot].
26-
#' * For `plot_type` "ridge", the arguments are passed to [plotthis::RidgePlot].
27-
#' * For `plot_type` "dim", the arguments are passed to [plotthis::FeatureDimPlot].
28-
#' * For `plot_type` "heatmap", the arguments are passed to [plotthis::Heatmap].
29-
#' * For `plot_type` "cor" with 2 features, the arguments are passed to [plotthis::CorPlot].
30-
#' * For `plot_type` "cor" with more than 2 features, the arguments are passed to [plotthis::CorPairsPlot].
31-
#' * For `plot_type` "dot", the arguments are passed to [plotthis::Heatmap] with `cell_type` set to "dot".
23+
#' * For `plot_type` "violin", the arguments are passed to [plotthis::ViolinPlot()].
24+
#' * For `plot_type` "box", the arguments are passed to [plotthis::BoxPlot()].
25+
#' * For `plot_type` "bar", the arguments are passed to [plotthis::BarPlot()].
26+
#' * For `plot_type` "ridge", the arguments are passed to [plotthis::RidgePlot()].
27+
#' * For `plot_type` "dim", the arguments are passed to [plotthis::FeatureDimPlot()].
28+
#' * For `plot_type` "heatmap", the arguments are passed to [plotthis::Heatmap()].
29+
#' * For `plot_type` "cor" with 2 features, the arguments are passed to [plotthis::CorPlot()].
30+
#' * For `plot_type` "cor" with more than 2 features, the arguments are passed to [plotthis::CorPairsPlot()].
31+
#' * For `plot_type` "dot", the arguments are passed to [plotthis::Heatmap()] with `cell_type` set to "dot".
3232
#' @return A ggplot object or a list if `combine` is FALSE
3333
#' @export
3434
#' @importFrom rlang %||% syms

0 commit comments

Comments
 (0)