Skip to content

Commit 13964cd

Browse files
committed
Fix lintr error
1 parent 5ae5775 commit 13964cd

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

R/internal.R

+17-17
Original file line numberDiff line numberDiff line change
@@ -728,29 +728,29 @@
728728
polygon_layers <- which(layers == "GeomPolygon")
729729
point_layers <- which(layers == "GeomPoint")
730730

731-
if (length(polygon_layers) == 1 &&
732-
length(point_layers) == 1) {
731+
if (length(polygon_layers) == 1 &&
732+
length(point_layers) == 1) {
733733

734-
point_data <- ggplot2::layer_data(x, point_layers) %>%
735-
dplyr::select(x, y, group)
734+
point_data <- ggplot2::layer_data(x, point_layers) %>%
735+
dplyr::select(x, y, group)
736736

737-
polygon_data <- unique(ggplot2::layer_data(x, polygon_layers))
738-
polygon_data <- polygon_data %>%
739-
dplyr::filter(y %in% point_data$y) %>%
740-
dplyr::group_by(group) %>%
741-
dplyr::summarise("lower_se" = base::min(x, na.rm = TRUE),
742-
"upper_se" = base::max(x, na.rm = TRUE))
737+
polygon_data <- unique(ggplot2::layer_data(x, polygon_layers))
738+
polygon_data <- polygon_data %>%
739+
dplyr::filter(y %in% point_data$y) %>%
740+
dplyr::group_by(group) %>%
741+
dplyr::summarise("lower_se" = base::min(x, na.rm = TRUE),
742+
"upper_se" = base::max(x, na.rm = TRUE))
743743

744-
binary_data <- dplyr::left_join(point_data, polygon_data,
745-
by = "group")
746-
binary_data$se <- binary_data$x - binary_data$lower_se
747-
binary_data$group <- factor(binary_data$group, labels = arms)
744+
binary_data <- dplyr::left_join(point_data, polygon_data,
745+
by = "group")
746+
binary_data$se <- binary_data$x - binary_data$lower_se
747+
binary_data$group <- factor(binary_data$group, labels = arms)
748748

749-
} else {
749+
} else {
750750

751-
binary_data <- NULL
751+
binary_data <- NULL
752752

753-
}
753+
}
754754

755755
return(binary_data)
756756
}

0 commit comments

Comments
 (0)