@@ -259,11 +259,7 @@ augment.cluster <- function(x, data, k = NULL, h = NULL, ...) {
259259# /beautiful-dendrogram-visualizations-in-r-5-must-known-methods
260260# -unsupervised-machine-learning
261261plot.cluster <- function (x , y , labels = TRUE , hang = - 1 , check = TRUE ,
262- <<<<<<< HEAD
263- type = " vertical" , lab = " Height" , ... ) {
264- =======
265262 type = " vertical" , lab = " Height" , ... ) {
266- >>>>>>> ebb9c87cd48f988294806dbc756d2a5f4357ea1c
267263 type <- match.arg(type [1 ], c(" vertical" , " horizontal" , " circular" ))
268264 # type == "circular" is special because we need to transform as ape::phylo
269265 if (type == " circular" ) {
@@ -292,11 +288,7 @@ circle <- function(x = 0, y = 0, d = 1, col = 0, lwd = 1, lty = 1, ...)
292288
293289# TODO: make sure the dendrogram is correct with different ggplot themes
294290autoplot.cluster <- function (object , labels = TRUE , type = " vertical" ,
295- <<<<<<< HEAD
296- circ.text.size = 3 , theme = theme_sciviews(), xlab = " " , ylab = " Height" , ... ) {
297- =======
298291 circ.text.size = 3 , theme = theme_sciviews(), xlab = " " , ylab = " Height" , ... ) {
299- >>>>>>> ebb9c87cd48f988294806dbc756d2a5f4357ea1c
300292 if (is.null(type ))
301293 type <- " vertical"
302294 type <- match.arg(type [1 ], c(" vertical" , " horizontal" , " circular" ))
@@ -327,15 +319,9 @@ circ.text.size = 3, theme = theme_sciviews(), xlab = "", ylab = "Height", ...) {
327319 coord_polar(start = pi / 2 )
328320 if (isTRUE(labels ))
329321 dendro <- dendro +
330- <<<<<<< HEAD
331322 geom_text(data = label_df ,
332323 aes(x = id , y = - 0.02 , label = labels , hjust = hjust ),
333324 size = circ.text.size , angle = label_df $ angle , inherit.aes = FALSE )
334- =======
335- geom_text(data = label_df ,
336- aes(x = id , y = - 0.02 , label = labels , hjust = hjust ),
337- size = circ.text.size , angle = label_df $ angle , inherit.aes = FALSE )
338- >>>>>>> ebb9c87cd48f988294806dbc756d2a5f4357ea1c
339325 dendro <- dendro +
340326 theme(panel.border = element_blank(),
341327 axis.text = element_blank(),
0 commit comments