Print(plot4, vp = viewport( = 2, layout.pos. # Put the plot on the the area by row and column position Once you push all the defined plots inside your layout it will generate the following combined plot. Once you establish the layout, the next step is to send your plots inside the layout using viewport( ) function and inside that, you have to provide the plot object and define its row and column position. PushViewport(viewport(layout = grid.layout(2,2))) # Next push the vissible area with a layout of 2 columns and 2 row using pushViewport() Here, we have pushed a 2 by 2 layout, means 2 rows and 2 columns for our four plots.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |