Skip to content

Commit

Permalink
fix vignette warning
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 28, 2024
1 parent 84ce5c7 commit b642238
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vignettes/probability_of_direction.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Probability of Direction (pd)"
output:
output:
rmarkdown::html_vignette:
toc: true
fig_width: 10.08
Expand All @@ -10,7 +10,7 @@ vignette: >
\usepackage[utf8]{inputenc}
%\VignetteIndexEntry{Probability of Direction (pd)}
%\VignetteEngine{knitr::rmarkdown}
editor_options:
editor_options:
chunk_output_type: console
bibliography: bibliography.bib
csl: apa.csl
Expand Down Expand Up @@ -98,10 +98,10 @@ dat <- transform(
)
ggplot(dat, aes(x = p_direction, y = p_value, color = effect_existence)) +
geom_point2(alpha = 0.1) +
geom_segment(aes(x = 95, y = Inf, xend = 95, yend = 0.1), color = "black", linetype = "longdash") +
geom_segment(aes(x = -Inf, y = 0.1, xend = 95, yend = 0.1), color = "black", linetype = "longdash") +
geom_segment(aes(x = 97.5, y = Inf, xend = 97.5, yend = 0.05), color = "black", linetype = "dashed") +
geom_segment(aes(x = -Inf, y = 0.05, xend = 97.5, yend = 0.05), color = "black", linetype = "dashed") +
annotate("segment", x = 95, y = Inf, xend = 95, yend = 0.1, color = "black", linetype = "longdash") +
annotate("segment", x = -Inf, y = 0.1, xend = 95, yend = 0.1, color = "black", linetype = "longdash") +
annotate("segment", x = 97.5, y = Inf, xend = 97.5, yend = 0.05, color = "black", linetype = "dashed") +
annotate("segment", x = -Inf, y = 0.05, xend = 97.5, yend = 0.05, color = "black", linetype = "dashed") +
theme_modern() +
scale_y_reverse(breaks = c(0.05, round(seq(0, 1, length.out = 11), digits = 2))) +
scale_x_continuous(breaks = c(95, 97.5, round(seq(50, 100, length.out = 6)))) +
Expand Down

0 comments on commit b642238

Please sign in to comment.