library(mosaicCalc)
## Loading required package: mosaic
## Registered S3 method overwritten by 'mosaic':
##   method                           from   
##   fortify.SpatialPolygonsDataFrame ggplot2
## 
## The 'mosaic' package masks several functions from core packages in order to add 
## additional features.  The original behavior of these functions should not be affected by this.
## 
## Attaching package: 'mosaic'
## The following objects are masked from 'package:dplyr':
## 
##     count, do, tally
## The following object is masked from 'package:Matrix':
## 
##     mean
## The following object is masked from 'package:ggplot2':
## 
##     stat
## The following objects are masked from 'package:stats':
## 
##     binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test,
##     quantile, sd, t.test, var
## The following objects are masked from 'package:base':
## 
##     max, mean, min, prod, range, sample, sum
## Loading required package: mosaicCore
## 
## Attaching package: 'mosaicCore'
## The following objects are masked from 'package:dplyr':
## 
##     count, tally
## 
## Attaching package: 'mosaicCalc'
## The following object is masked from 'package:stats':
## 
##     D
## Loading required package: mosaic
## Registered S3 method overwritten by 'mosaic':
##   method                           from   
##   fortify.SpatialPolygonsDataFrame ggplot2
## 
## The 'mosaic' package masks several functions from core packages in order to add 
## additional features.  The original behavior of these functions should not be affected by this.
## 
## Attaching package: 'mosaic'
## The following objects are masked from 'package:dplyr':
## 
##     count, do, tally
## The following object is masked from 'package:Matrix':
## 
##     mean
## The following object is masked from 'package:ggplot2':
## 
##     stat
## The following objects are masked from 'package:stats':
## 
##     binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test,
##     quantile, sd, t.test, var
## The following objects are masked from 'package:base':
## 
##     max, mean, min, prod, range, sample, sum
## Loading required package: mosaicCore
## 
## Attaching package: 'mosaicCore'
## The following objects are masked from 'package:dplyr':
## 
##     count, tally
## 
## Attaching package: 'mosaicCalc'
## The following object is masked from 'package:stats':
## 
##     D

contour_plot() digunakan untuk memplot dengan dua variabel input. Kita perlu membuat daftar dua variabel di sebelah kanan +tanda, dan perlu memberikan rentang untuk masing-masing variabel. Sebagai contoh:

contour_plot(
  sin(3*pi*t/15)*exp(-.4*x) ~ t & x, 
  domain(t = range(0,40), x = range(0,20)))

Membuat plot perspektif 3 dimensi dengan menggunakan interactive_plot()fungsi contohnya yaitu:

interactive_plot(
   sin(3*pi*t/15)*exp(-.4*x) ~ t & x, 
   domain(t = 0:40, x = 0:20))
contour_plot(
  sqrt( (v-4)^2 + 2*(w-6)^2 ) ~ v & w, 
  domain(v=0:10, w=0:10))

Diatas adalah contoh kontur yaitu {Garis Paralel, Lingkaran Konsentris, Elips Konsentris, Berbentuk X}

contour_plot(
  4*v - 6*w + 4 ~ v & w, 
  domain(v=0:8, w=0:8))

Diatas adalah contoh kontur yaitu:{Garis Paralel , Lingkaran Konsentris, Elips Konsentris, Berbentuk X}}