반응형 카이제곱분포1 [ggplot2] 카이제곱분포 그래프 그려보기 (+제목 크기 조절) 카이제곱 분포 그래프를 그려보았습니다. 타이틀을 가운데정렬하고, 크기도 조절하였습니다. library(tidyverse) x=seq(0,4,0.01) y=dchisq(x,1) df=data.frame(x,y) ggplot(df,aes(x,y))+ geom_line()+ ggtitle("1 dof chisq")+ theme(plot.title = element_text(hjust = 0.5))+ theme(plot.title = element_text(size = 20, face = "bold")) 2023. 1. 15. 이전 1 다음 반응형