Skip to content

Commit

Permalink
Update axis line
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhodge931 committed Dec 17, 2024
1 parent 7113a8c commit 152a451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/annotate_axis_line.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ annotate_axis_line <- function(

if (axis == "x") {
if (rlang::is_null(colour)) colour <- ggplot2::GeomHline$default_aes$colour
if (rlang::is_null(linewidth)) colour <- ggplot2::GeomHline$default_aes$linewidth
if (rlang::is_null(linewidth)) linewidth <- ggplot2::GeomHline$default_aes$linewidth

if (x_position == "bottom") {
stamp <- rlang::list2(
Expand Down Expand Up @@ -72,7 +72,7 @@ annotate_axis_line <- function(
}
else if (axis == "y") {
if (rlang::is_null(colour)) colour <- ggplot2::GeomVline$default_aes$colour
if (rlang::is_null(linewidth)) colour <- ggplot2::GeomVline$default_aes$linewidth
if (rlang::is_null(linewidth)) linewidth <- ggplot2::GeomVline$default_aes$linewidth

if (y_position == "left") {
stamp <- rlang::list2(
Expand Down

0 comments on commit 152a451

Please sign in to comment.