R Markdown

In this example code, we first install and load the scatterplot3d package. Then, we create some sample data for our plot (x, y, and z) using the rnorm() function. See the reference : https://statsidea.com/id/apa-itu-data-diskrit-dan-kontinu-dan-penjelasannya/

Finally, we create a 3D scatter plot by calling the scatterplot3d() function and passing in the three variables (x, y, z). We specify the type of plot as “h” (hollow circles), the color as blue, and add labels to the x, y, and z axes. The main title of the plot is also added.

library(scatterplot3d)

# Create sample data
x <- rnorm(100)
y <- rnorm(100)
z <- rnorm(100)

Including Plots

Do not forget to plot

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.