Skip to content

Commit 5c6b2d1

Browse files
Copilotd-morrison
andcommitted
Qualify aes() calls and use .data$ for NSE in graph_S.R
Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
1 parent f65b110 commit 5c6b2d1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

R/graph_S.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ graph_S = function(
66
dplyr::filter(ID == ID) |>
77
ggplot2::ggplot() +
88
ggplot2::aes(
9-
x = S,
10-
y = `P(S=s|e,l,r,o,y)`,
9+
x = .data$S,
10+
y = .data$`P(S=s|e,l,r,o,y)`,
1111
col = "P(S=s|e,l,r,o,y)") +
1212
ggplot2::geom_point() +
1313
ggplot2::geom_line() +
14-
ggplot2::geom_point(aes(y = `P(S=s|E=e)`, col = "P(S=s|E=e)")) +
15-
ggplot2::geom_line(aes(y = `P(S=s|E=e)`, col = "P(S=s|E=e)")) +
16-
ggplot2::geom_point(aes(y = `P(Y=y|T=t)`, col = "P(Y=y|T=t)")) +
17-
ggplot2::geom_line(aes(y = `P(Y=y|T=t)`, col = "P(Y=y|T=t)")) +
14+
ggplot2::geom_point(ggplot2::aes(y = .data$`P(S=s|E=e)`, col = "P(S=s|E=e)")) +
15+
ggplot2::geom_line(ggplot2::aes(y = .data$`P(S=s|E=e)`, col = "P(S=s|E=e)")) +
16+
ggplot2::geom_point(ggplot2::aes(y = .data$`P(Y=y|T=t)`, col = "P(Y=y|T=t)")) +
17+
ggplot2::geom_line(ggplot2::aes(y = .data$`P(Y=y|T=t)`, col = "P(Y=y|T=t)")) +
1818
ggplot2::xlab("Seroconversion date (s)") +
1919
ggplot2::ylab("Probability density or mass") +
2020
ggplot2::theme_classic() +

0 commit comments

Comments
 (0)