Multiple plots in one graph r5/8/2023 ![]() ![]() a density plot of the variable “Sepal.Length”.We start by creating the following plots: In this section, we’ll show how to plot a table and text alongside a chart. Print(bp + rremove("x.text"), vp = define_region(row = 3, col = 1:2)) Print(dp, vp = define_region(row = 2, col = 2)) Print(bxp, vp = define_region(row = 2, col = 1)) Print(sp, vp = define_region(row = 1, col = 1:2)) # Span over two columns # A helper function to define a region on the layout PushViewport(viewport(layout = grid.layout(nrow = 3, ncol = 2))) Define a grid viewport : a rectangular region on a graphics device. ![]()
0 Comments
Leave a Reply. |