流行曲線(点源)

点源型流行曲線テンプレート。一回の曝露による集団発生パターンをプロット。

流行曲線点源集団発生
流行曲線(点源)

R Code (ggplot2)

library(ggplot2)

# ---- Epidemic Curve (Point Source) ----
# あなたのデータを入力してください
df <- data.frame(
  x = c(),
  y = c()
)

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Date", limits = c(0, 30)) +
  scale_y_continuous(name = "Number of cases", limits = c(0, 50)) +
  labs(title = "Epidemic Curve (Point Source)") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))