Skip to content

Commit

Permalink
fixed issue #138
Browse files Browse the repository at this point in the history
  • Loading branch information
dicook committed Feb 28, 2025
1 parent 1adb66e commit 0b60e3d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: tourr
Title: Tour Methods for Multivariate Data Visualisation
Version: 1.2.4
Version: 1.2.5
Authors@R: c(
person("Hadley", "Wickham", email = "[email protected]", role = c("aut", "ctb"), comment = c(ORCID = "0000-0003-4757-117X")),
person("Dianne", "Cook", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-3813-7155")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# tourr 1.2.5

* fixed issue #138

# tourr 1.2.4

* Fixed an error with draw_tour_axes
Expand Down
4 changes: 4 additions & 0 deletions R/animate.r
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ animate <- function(data, tour_path = grand_tour(), display = display_xy(),
message("Converting input data to the required matrix format.")
data <- as.matrix(data)
}
if (is.null(colnames(data))){
message("Adding column names.")
colnames(data) <- paste0("x", 1:ncol(data))
}

if (rescale) data <- rescale(data)
if (sphere) data <- sphere_data(data)
Expand Down

0 comments on commit 0b60e3d

Please sign in to comment.