Skip to content

Commit

Permalink
new examples
Browse files Browse the repository at this point in the history
  • Loading branch information
arnesmits committed Aug 21, 2017
1 parent 9a25522 commit ec5d840
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions R/plot_functions_explore.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#' dep <- add_rejections(diff, alpha = 0.05, lfc = 1)
#'
#' plot_pca(dep)
#' plot_pca(dep, indicate = "")
#' plot_pca(dep, indicate = "condition")
#' @export
plot_pca <- function(dep, x = 1, y = 2, indicate = c("condition", "replicate"),
label = FALSE, n = 500, point_size = 6, label_size = 3) {
Expand Down Expand Up @@ -173,6 +173,8 @@ plot_pca <- function(dep, x = 1, y = 2, indicate = c("condition", "replicate"),
#' Sets the color panel (from \code{\link[RColorBrewer]{brewer.pal}}).
#' @param pal_rev Logical(1),
#' Whether or not to invert the color palette.
#' @param font_size Integer(1),
#' Sets the size of the labels.
#' @param ... Additional arguments for Heatmap function as depicted in
#' \code{\link[ComplexHeatmap]{Heatmap}}
#' @return A heatmap plot (generated by \code{\link[ComplexHeatmap]{Heatmap}})
Expand All @@ -193,7 +195,7 @@ plot_pca <- function(dep, x = 1, y = 2, indicate = c("condition", "replicate"),
#' diff <- test_diff(imputed, 'Ctrl', 'control')
#' dep <- add_rejections(diff, alpha = 0.05, lfc = 1)
#'
#' plot_corr(dep)
#' plot_cor(dep)
#' @export
plot_cor <- function(dep, significant = TRUE, lower = -1, upper = 1,
pal = "PRGn", pal_rev = FALSE, font_size = 12, ...) {
Expand Down
5 changes: 4 additions & 1 deletion man/plot_cor.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/plot_pca.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ec5d840

Please sign in to comment.