3.5 Fungsi tanpa parameter: splines dan smooths
library(mosaicCalc)
## Loading required package: mosaicCore
## Loading required package: Deriv
## Loading required package: Ryacas
##
## Attaching package: 'Ryacas'
## The following object is masked from 'package:stats':
##
## integrate
## The following objects are masked from 'package:base':
##
## %*%, diag, diag<-, lower.tri, upper.tri
## Registered S3 method overwritten by 'mosaic':
## method from
## fortify.SpatialPolygonsDataFrame ggplot2
##
## Attaching package: 'mosaicCalc'
## The following object is masked from 'package:stats':
##
## D
library(mosaicCalc)
g <- makeFun(sin(x) - 0.35 ~ x)
slice_plot(g(x) ~ x, domain(x = -20:20)) %>%
gf_hline(yintercept = 0, color = "red") %>%
gf_vline(xintercept = 0, color = "red")