Skip to content

Commit

Permalink
default rule stat to rule geom
Browse files Browse the repository at this point in the history
  • Loading branch information
corybrunson committed Dec 30, 2024
1 parent fd4ca80 commit 0c36b1c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/stat-rule.r
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#' @example inst/examples/ex-stat-rule-glass.r
#' @export
stat_rule <- function(
mapping = NULL, data = NULL, geom = "axis", position = "identity",
mapping = NULL, data = NULL, geom = "rule", position = "identity",
fun.lower = "minpp", fun.upper = "maxpp",
fun.offset = "minabspp",
fun.args = list(),
Expand Down
4 changes: 2 additions & 2 deletions R/zzz-biplot-stats.r
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ StatRowsRule <- ggproto(
stat_rows_rule <- function(
mapping = NULL,
data = NULL,
geom = "axis",
geom = "rule",
position = "identity",
fun.lower = "minpp",
fun.upper = "maxpp",
Expand Down Expand Up @@ -596,7 +596,7 @@ StatColsRule <- ggproto(
stat_cols_rule <- function(
mapping = NULL,
data = NULL,
geom = "axis",
geom = "rule",
position = "identity",
fun.lower = "minpp",
fun.upper = "maxpp",
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/ex-stat-rule-glass.r
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ glass_lda %>%
ggbiplot() +
theme_bw() + theme_biplot() +
geom_rows_point(aes(shape = grouping, alpha = discriminant)) +
stat_cols_rule(aes(label = name), color = "#888888", num = 8L,
stat_cols_rule(aes(label = name), geom = "axis", color = "#888888", num = 8L,
fun.offset = \(x) minabspp(x, p = .1),
text_size = 2.5, text_dodge = .025) +
scale_shape_manual(values = c(16L, 17L, 15L, 18L)) +
Expand Down
4 changes: 2 additions & 2 deletions man/biplot-stats.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified man/figures/README-predictive biplot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions man/stat_rule.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c36b1c

Please sign in to comment.