Skip to content

Commit

Permalink
Revert incorrect column name
Browse files Browse the repository at this point in the history
  • Loading branch information
andrie committed Jan 25, 2024
1 parent d773bfd commit 698fe83
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: ggdendro
Version: 0.1.23.9000
Version: 0.2.0
Title: Create Dendrograms and Tree Diagrams Using 'ggplot2'
Description: This is a set of tools for dendrograms and
tree plots using 'ggplot2'. The 'ggplot2' philosophy is to
Expand Down
5 changes: 2 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ggdendro 0.1.23.9000
# ggdendro 0.2.0

Bug fix:

Expand All @@ -7,8 +7,7 @@ Bug fix:
Other:

- Fix deprecated `ggplot()` `aes` usage


- Small documentation fixes to comply with stricter CRAN testing



Expand Down
2 changes: 1 addition & 1 deletion R/dendrogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ dendrogram_data <- function(x, type = c("rectangle", "triangle"), ...) {

ret$labels <- cbind(
as.data.frame(matrix(ret$labels$xy, ncol = 2, byrow = TRUE, dimnames = list(NULL, c("x", "y")))),
data.frame(text = ret$labels$text)
data.frame(label = ret$labels$text)
)

ret
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ggplot() +
aes(x = x, y = y, xend = xend, yend = yend)
) +
geom_text(data = label(hcdata),
aes(x = x, y = y, label = text, hjust = 0),
aes(x = x, y = y, label = label, hjust = 0),
size = 3
) +
coord_flip() +
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ggplot() +
aes(x = x, y = y, xend = xend, yend = yend)
) +
geom_text(data = label(hcdata),
aes(x = x, y = y, label = text, hjust = 0),
aes(x = x, y = y, label = label, hjust = 0),
size = 3
) +
coord_flip() +
Expand Down

0 comments on commit 698fe83

Please sign in to comment.