@@ -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" )
0 commit comments