主訴棒グラフ

主訴棒グラフテンプレート。救急受診の主訴別件数を比較。

bar棒グラフ主訴救急受診
主訴棒グラフ

R Code (ggplot2)

library(ggplot2)

# ---- Chief Complaint Bar Chart ----
# あなたのデータを入力してください
df <- data.frame(
  x = c(),
  y = c()
)

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Chief Complaint", limits = c(0, 6)) +
  scale_y_continuous(name = "Cases", limits = c(0, 500)) +
  labs(title = "Chief Complaint Bar Chart") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))