Skip to content

Commit 574159f

Browse files
committed
Update clonalcompositionplot.R
pass label_cutoff and label_accuracy to Heatmap()
1 parent 3847258 commit 574159f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

R/clonalcompositionplot.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,9 +1084,8 @@ ClonalOverlapPlot <- function(
10841084
Heatmap(data, rows = rows, columns_by = columns_by, split_by = split_by,
10851085
clustering_distance_rows = function(m) { clustering_distance(t(m)) },
10861086
clustering_distance_columns = clustering_distance, rows_name = columns_by,
1087-
name = name, palette = palette, label = function(x) {
1088-
ifelse(x > label_cutoff, scales::number(x, accuracy = label_accuracy), NA)
1089-
},
1090-
cluster_rows = cluster_rows, cluster_columns = cluster_columns, cell_type = "label",
1087+
name = name, palette = palette, label_cutoff = label_cutoff,
1088+
label_accuracy = label_accuracy cluster_rows = cluster_rows,
1089+
cluster_columns = cluster_columns, cell_type = "label",
10911090
show_row_names = show_row_names, show_column_names = show_column_names, ...)
10921091
}

0 commit comments

Comments
 (0)