Skip to content

Commit 4021bd2

Browse files
committed
fixes for CRAN submission
1 parent ac305ca commit 4021bd2

19 files changed

+50
-163
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ License: MIT + file LICENSE
3838
LazyData: true
3939
URL: https://github.com/ggobi/tourr
4040
BugReports: https://github.com/ggobi/tourr/issues
41-
RoxygenNote: 7.2.0
41+
RoxygenNote: 7.2.1
4242
Encoding: UTF-8
4343
VignetteBuilder: knitr

NEWS

Lines changed: 0 additions & 116 deletions
This file was deleted.

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# tourr 0.6.1
22

3-
A radial tour is added that will allow a variable to be zero'd from a projection.
3+
* A radial tour is added that will allow a variable to be zero'd from a projection.
4+
5+
* Fixes made according to CRAN requests
46

57
# tourr 0.6.0
68

R/animate.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ animate <- function(data, tour_path = grand_tour(), display = display_xy(),
3636
start = NULL, aps = 1, fps = 10, max_frames = Inf,
3737
rescale = TRUE, sphere = FALSE, ...) {
3838
record <-
39-
dplyr::tibble(
39+
tibble::tibble(
4040
basis = list(),
4141
index_val = numeric(),
4242
info = character(),

R/data.r

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,17 @@ NULL
9191
#' Monthly ozone measurements over Central America
9292
#'
9393
#'
94-
#' This data set is a subset of the data from the 2006 ASA Data expo challenge,
95-
#' \url{https://community.amstat.org/jointscsg-section/dataexpo/new-item5}.
96-
#' The data are monthly ozone
97-
#' averages on a very coarse 24 by 24 grid covering Central America, from Jan
98-
#' 1995 to Dec 2000. The data is stored in a 3d area with the first two
99-
#' dimensions representing latitude and longitude, and the third representing
94+
#' This data set is a subset of the data from the 2006 ASA Data expo challenge.
95+
#' The data are monthly ozone averages on a very coarse 24 by 24 grid covering
96+
#' Central America, from Jan 1995 to Dec 2000. The data is stored in a 3d area
97+
#' with the first two dimensions representing latitude and longitude, and the
98+
#' third representing
10099
#' time.
101100
#'
102-
#'
103101
#' @name Ozone measurements
104102
#' @aliases ozone
105103
#' @docType data
106104
#' @format A 24 x 24 x 72 numeric array
107-
#' @references \url{https://community.amstat.org/jointscsg-section/dataexpo/new-item5}
108105
#' @keywords datasets
109106
#' @examples
110107
#'

R/display-xy.r

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ display_xy <- function(center = TRUE, axes = "center", half_range = NULL,
7272
rect(-1, -1, 1, 1, col = "#FFFFFFE6", border = NA)
7373
}
7474
render_data <- function(data, proj, geodesic) {
75-
draw_tour_axes(proj, labels, limits = 1, axes)
75+
draw_tour_axes(proj, labels, limits = 1, axes, ...)
7676

7777
# Render projected points
7878
x <- data %*% proj
@@ -106,7 +106,7 @@ animate_xy <- function(data, tour_path = grand_tour(), ...) {
106106

107107
#' Draw tour axes with base graphics
108108
#' @keywords internal
109-
draw_tour_axes <- function(proj, labels, limits, position) {
109+
draw_tour_axes <- function(proj, labels, limits, position, ...) {
110110
position <- match.arg(position, c("center", "bottomleft", "off"))
111111
if (position == "off") {
112112
return()
@@ -123,6 +123,11 @@ draw_tour_axes <- function(proj, labels, limits, position) {
123123
adj <- function(x) axis_pos + x * axis_scale
124124

125125
segments(adj(0), adj(0), adj(proj[, 1]), adj(proj[, 2]), col = "grey50")
126+
# if (!is.null(mvar)) { # colour manip var
127+
# if ((mvar < (nrow(proj)+1)) & (mvar > 0)) {
128+
# segments(adj(0), adj(0), adj(proj[, 1]), adj(proj[, 2]), col = "orange")
129+
# }
130+
# }
126131
theta <- seq(0, 2 * pi, length = 50)
127132
lines(adj(cos(theta)), adj(sin(theta)), col = "grey50")
128133
text(adj(proj[, 1]), adj(proj[, 2]), label = labels, col = "grey50")

R/geodesic-path.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#' @export
2121
#' @keywords internal
2222
new_geodesic_path <- function(name, generator, frozen = NULL, ...) {
23-
tries <- 1
23+
tries <- 1 # Needed for guided
2424

2525
tour_path <- function(current, data, ...) {
2626
if (is.null(current)) {

R/history.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ save_history <- function(data, tour_path = grand_tour(), max_bases = 100, start
4949
if (sphere) data <- sphere_data(data)
5050

5151
record <-
52-
dplyr::tibble(
52+
tibble::tibble(
5353
basis = list(),
5454
index_val = numeric(),
5555
info = character(),

R/interpolate.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interpolate <- function(basis_set, angle = 0.05, cycle = FALSE) {
2222
}
2323

2424
record <-
25-
dplyr::tibble(
25+
tibble::tibble(
2626
basis = list(),
2727
index_val = numeric(),
2828
info = character(),

R/render.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ render <- function(data, tour_path, display, dev, ..., apf = 1 / 10, frames = 50
3939
on.exit(dev.off())
4040

4141
record <-
42-
dplyr::tibble(
42+
tibble::tibble(
4343
basis = list(),
4444
index_val = numeric(),
4545
info = character(),

0 commit comments

Comments
 (0)