Skip to content

Commit 6ed36b1

Browse files
gestion of several conflicts
Merge branch 'master' of https://github.com/BioDataScience-Course/BioDataScience2 # Conflicts: # devel/shiny/B05Sa_cluster/app.R
2 parents 1851965 + ebb9c87 commit 6ed36b1

File tree

1 file changed

+14
-0
lines changed
  • devel/shiny/B05Sa_cluster

1 file changed

+14
-0
lines changed

devel/shiny/B05Sa_cluster/app.R

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,11 @@ augment.cluster <- function(x, data, k = NULL, h = NULL, ...) {
259259
# /beautiful-dendrogram-visualizations-in-r-5-must-known-methods
260260
# -unsupervised-machine-learning
261261
plot.cluster <- function(x, y, labels = TRUE, hang = -1, check = TRUE,
262+
<<<<<<< HEAD
262263
type = "vertical", lab = "Height", ...) {
264+
=======
265+
type = "vertical", lab = "Height", ...) {
266+
>>>>>>> ebb9c87cd48f988294806dbc756d2a5f4357ea1c
263267
type <- match.arg(type[1], c("vertical", "horizontal", "circular"))
264268
# type == "circular" is special because we need to transform as ape::phylo
265269
if (type == "circular") {
@@ -288,7 +292,11 @@ circle <- function(x = 0, y = 0, d = 1, col = 0, lwd = 1, lty = 1, ...)
288292

289293
# TODO: make sure the dendrogram is correct with different ggplot themes
290294
autoplot.cluster <- function(object, labels = TRUE, type = "vertical",
295+
<<<<<<< HEAD
291296
circ.text.size = 3, theme = theme_sciviews(), xlab = "", ylab = "Height", ...) {
297+
=======
298+
circ.text.size = 3, theme = theme_sciviews(), xlab = "", ylab = "Height", ...) {
299+
>>>>>>> ebb9c87cd48f988294806dbc756d2a5f4357ea1c
292300
if (is.null(type))
293301
type <- "vertical"
294302
type <- match.arg(type[1], c("vertical", "horizontal", "circular"))
@@ -319,9 +327,15 @@ circ.text.size = 3, theme = theme_sciviews(), xlab = "", ylab = "Height", ...) {
319327
coord_polar(start = pi/2)
320328
if (isTRUE(labels))
321329
dendro <- dendro +
330+
<<<<<<< HEAD
322331
geom_text(data = label_df,
323332
aes(x = id, y = -0.02, label = labels, hjust = hjust),
324333
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
325339
dendro <- dendro +
326340
theme(panel.border = element_blank(),
327341
axis.text = element_blank(),

0 commit comments

Comments
 (0)