Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4049726
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:58:51+00:00 2026-05-20T13:58:51+00:00

I have three plots which I would to arrange in a single window. I

  • 0

I have three plots which I would to arrange in a single window. I can arrange similar-sized plots on a regular 2*2 grid using par(mfrow = c(2, 2)):

par(mfrow = c(2, 2))
plot(1:10, main = "plot1")
plot(10:1, main = "plot2")
plot(rnorm(10), main = "plot3")

However, I want to position “plot1” and “plot2” beside each other on the top row, and “plot3” below them, centered horizontally. How can I achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T13:58:52+00:00Added an answer on May 20, 2026 at 1:58 pm

    You probably want layout, you can set up pretty complex grids by creating a matrix.

    m <- matrix(c(1, 0, 1,  3, 2, 3, 2, 0), nrow = 2, ncol = 4)
    ##set up the plot
    layout(m)
    ## now put out the 3 plots to each layout "panel"
    plot(1:10, main = "plot1")
    plot(10:1, main = "plot2")
    plot(rnorm(10), main = "plot3")
    

    Use layout.show to see each panel.

    Print out the matrix to see how this works:

     m
          [,1] [,2] [,3] [,4]
     [1,]    1    1    2    2
     [2,]    0    3    3    0
    

    There are 1s for the first panel, 2s for the second, etc. 0s for the “non-panel”.

    See help(layout).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of X,Y,Z values on a regular spaced grid from which
I have a google maps app which plots markers as it loads. One of
I have a dataset with labels which I would like to plot with points
In R is there any way to produce plots which have no title and
I have the following Python code which I am using to plot a filled
By accident I created a variable called ls which I have spotted using ls().
I have two coordinates for which I would like to draw a perpendicular line
I have three data sets of different lengths and I would like to plot
I have a line plot of prices for three stocks, which I normalise by
I have a faceted plot (about which I had this other question). I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.