Skip to content

Commit b5a6ae9

Browse files
committed
fix broken example
1 parent 8b0ab3c commit b5a6ae9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/dataset_chart_classes.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ setMethod(f="chart.plot",
220220
#' @param show_counts [TRUE] or FALSE to include the number of samples on the plot
221221
#' @examples
222222
#' D = sbcms_dataset()
223-
#' C = mv_boxplot()
223+
#' C = mv_boxplot(factor_name='class')
224224
#' chart.plot(C,D)
225225
#'
226226
#' @import struct
@@ -272,7 +272,7 @@ setMethod(f="chart.plot",
272272
# get data
273273
Xt=dataset.data(dobj)
274274
# meta data
275-
SM=dataset.sample_meta(dobj)[ ,1]
275+
SM=dataset.sample_meta(dobj)[ ,obj$factor_name]
276276

277277
L=levels(SM)
278278

man/mv_boxplot-class.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)