줄리아 점도표에서 회귀직선 그리는 법
How to Draw Regression Line in Scatter Plot of julia
코드
줄리아의 점도표에서 회귀직선을 넣는 법은 다음과 같이 옵션으로 smooth = true
를 주는 것이다.
using Plots
x = rand(100)
scatter(x, 2x .+ 0.1randn(100), smooth = true)
savefig("plot.svg")
환경
- OS: Windows
- julia: v1.8.3
- Plots v1.38.5
댓글