Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangchuangYu committed Dec 20, 2024
1 parent 7340804 commit dd31988
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions R/emapplot_utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,27 +240,6 @@ get_label_location <- function(ggData, label_format) {



# add_node_label <- function(p, data, label_size_node, cex_label_node, shadowtext) {
# # If use 'aes_(alpha =~I(alpha))' will put an error for AsIs object.
# # But I(alpha) is necessory, so use 'alpha = I(data$alpha)'.
# segment.size <- get_ggrepel_segsize()
# if (is.null(data)) {
# data <- p$data
# }
# if (shadowtext) {
# p <- p + geom_node_text(aes_(label=~name), data = data,
# alpha = I(data$alpha),
# size = label_size_node * cex_label_node, bg.color = "white",
# repel=TRUE, segment.size = segment.size)
# } else {
# p <- p + geom_node_text(aes_(label=~name), data = data,
# alpha = I(data$alpha),
# size = label_size_node * cex_label_node, repel=TRUE,
# segment.size = segment.size)
# }
# return(p)
# }

##' Cluster similar nodes together by k-means
##'
##' @param p a ggraph object.
Expand Down

0 comments on commit dd31988

Please sign in to comment.