Skip to content

Commit

Permalink
fixo
Browse files Browse the repository at this point in the history
  • Loading branch information
wolski committed Sep 3, 2024
1 parent 505f874 commit dcb1333
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion R/LFQDataPlotter.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
#' istar$data,
#' istar$config)
#' #LFQDataPlotter$debug("boxplots")
#' LFQDataPlotter$debug("pairs_smooth")
#' lfqplotter <- lfqdata$get_Plotter()
#'
#' stopifnot(class(lfqplotter$heatmap()) == "pheatmap")
#' stopifnot(class(lfqplotter$heatmap_cor()) == "pheatmap")
#' stopifnot("ggplot" %in% class(lfqplotter$pca()))
#' stopifnot("plotly" %in% class(lfqplotter$pca_plotly()))
#'
#' tmp <- lfqplotter$boxplots()
#' stopifnot("ggplot" %in% class(tmp$boxplot[[1]]))
#' stopifnot("ggplot" %in% class(lfqplotter$missigness_histogram()))
Expand Down
5 changes: 0 additions & 5 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -460,11 +460,6 @@ panel_cor <- function(x, y, digits = 2, ...)
#' pairs_smooth(tmp,log="xy",main="small data", legend=TRUE)
#' @seealso also \code{\link{pairs}}
pairs_smooth <- function(data, legend = FALSE, ...) {
while (nrow(na.omit(data)) < 100) {
non_na_counts <- apply(data, 2, function(x) sum(!is.na(x)))
min_col <- which.min(non_na_counts)
data <- data[, -min_col, drop = FALSE]
}

pairs(
data,
Expand Down

0 comments on commit dcb1333

Please sign in to comment.