A R language ggplot2 package liked grammar of graphics library for R# language programming.
The R# language is another scientific computing language which is designed for .NET runtime, R# is evolved from the R language. There is a famous graphics library called ggplot2 in R language, so keeps the same, there is a graphics library called ggplot was developed for R# language.
rendering a 3d chart in ggplot package is just simply enough as create a 2d chart plot. we just needs add a data mapping of the z axis at here!
# create ggplot layers and tweaks via ggplot style options
ggplot(data, aes(x = "X", y = "Y", z = "Z"), padding = "padding:250px 500px 100px 100px;")
# use scatter points for visual our data
+ geom_point(aes(color = "class"), color = "paper", shape = "triangle", size = 20)
+ ggtitle("Scatter UMAP 3D")
# use the default white theme from ggplot
+ theme_default()
# use a 3d camera to rotate the charting plot
# and adjust view distance
+ view_camera(angle = [31.5,65,125], fov = 100000)
;
Theme in ggplot
just change the function theme_default to theme_black, then we can get a cool 3d scatter plot in black theme:
ggplot(data, aes(x = "X", y = "Y", z = "Z"), padding = "padding:250px 500px 100px 100px;")
+ geom_point(aes(color = "class"), color = "paper", shape = "triangle", size = 20)
+ ggtitle("Scatter UMAP 3D")
# use the black theme from ggplot package
+ theme_black()
+ view_camera(angle = [31.5,65,125], fov = 100000)
;
ggplot
The
R#
language is another scientific computing language which is designed for .NET runtime,R#
is evolved from the R language. There is a famous graphics library calledggplot2
in R language, so keeps the same, there is a graphics library calledggplot
was developed forR#
language.usage
Use ggplot as python module
Plot 3d scatter
rendering a 3d chart in ggplot package is just simply enough as create a 2d chart plot. we just needs add a data mapping of the z axis at here!
Theme in ggplot
just change the function
theme_default
totheme_black
, then we can get a cool 3d scatter plot in black theme:Vignettes