Share the Gallery !Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

There is a quick tutorial about how to divide a screen with the layout function. You can divide the device into as many rows and columns as you want, and specify the column-widths and the row-heights !

Let’s create random data.

Let’s say I want to divide the device in 3 parts : a huge graph on top and 2 smalls below. I give a matrix of 2 columns and 2 rows, and attribute each part for a graph. So the 2 first parts for graph number 1, and the 2 other for graph 2 and 3.

Calling results in the layout being displayed for your reference. This allows you to experiment with the parameter options and immediately get a sense of how a given layout will be rendered.

And add plots in each part of the screen


I can also custom the size of each screen! Let’s make the right part smaller:

#75_Split_screen_with_layout_3 #75_Split_screen_with_layout_4

Not what you are looking for ? Make a new search !

3D abline add aggregate animation arrows at axis barplot basics beside bg border boxplot boxwex breaks bty cex cex.axis circular plot cmdscale col color Colors cor cut d3.js dataArt dendrogram density dist factor font ggplot2 hclust hist Histograms horiz hsv ifelse Igraph image ImageMagick Important ! inset jitter labels las lattice layout leafletR legend legend.text levelplot levels library lines lm lty lwd main map Maps mar mfrow mfrox mgp Miscellaneous model mtext mtxt names nlevels oma order package par paste PCA pch pie plot plotly points polygon predict pt.cex pty R radarchart rect reorder rgb rgl Ring scatterplot segments stacked-area table tag_ tag_for_slider testnumber1 text tick Time series title toto tutu type VennDiagram violin-plot width wordcloud xaxt xlab xlim xyplot yaxt ylab ylim zetag

You can search a media by theme with the tag cloud above.

Leave a Reply

Be the First to Comment!

Notify of