How to plot a piecewise function in R?

前端 未结 0 323
慢半拍i
慢半拍i 2020-11-30 11:47

I have a function

g(h) = 2h for -20 <= h <= 20 and 1 otherwise.

How can I plot this using R?

Very new to R so thanks for any guidance

相关标签:
回答
  • 消灭零回复
提交回复
热议问题