Skip to content

Commit c2df5ac

Browse files
committed
fix tests
1 parent 8495437 commit c2df5ac

4 files changed

Lines changed: 2219 additions & 2209 deletions

File tree

R/plotFrame.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ NULL
4444
if (is(y, "SpatialDataPoint")) {
4545
if (!is.null(key)) {
4646
fk <- feature_key(y)
47-
y@data <- dplyr::filter(data(y), .data[[fk]] %in% key)
47+
y<- dplyr::filter(y, .data[[fk]] %in% key)
4848
}
4949
}
5050
if (is.finite(n)) {
@@ -73,11 +73,14 @@ NULL
7373
if (val %in% names(df)) {
7474
if (scale_type(df[[arg]]) == "discrete")
7575
df[[val]] <- factor(df[[arg]])
76-
aes[[arg]] <- aes(.data[[val]])[[1]]
76+
col <- match(arg, c("col", "color", "colour"))
77+
.arg <- ifelse(!is.na(col), "colour", arg)
78+
aes[[.arg]] <- aes(.data[[val]])[[1]]
7779
dot[[arg]] <- NULL
7880
}
7981
}
8082
}
83+
8184
if ("radius" %in% names(df))
8285
df <- st_buffer(df, df$radius)
8386
list(

0 commit comments

Comments
 (0)