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 8005577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:16:05+00:00 2026-06-04T17:16:05+00:00

I have a large matrix mdat (1000 rows and 16 columns) contains first column

  • 0

I have a large matrix mdat (1000 rows and 16 columns) contains first column as x variable and other columns as y variables. What I want to do is to make scatter plot in R having 15 figures on the same window. For example:

mdat <- matrix(c(1:50), nrow = 10, ncol=5)

In the above matrix, I have 10 rows and 5 columns. Is it possible that to use the first column as variable on x axes and other columns as variable on y axes, so that I have four different scatterplots on the same window? Keep in mind that I will not prefer par(mfrow=, because in that case I have to run each graph and then produce them on same window. What I need is a package so that I will give it just data and x, y varaibeles, and have graphs on same windows.
Is there some package available that can do this? I cannot find one.

  • 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-06-04T17:16:06+00:00Added an answer on June 4, 2026 at 5:16 pm

    @user4299 You can re-write shujaa’s ggplot command in this form, using qplot which means ‘quick plot’ which is easier when starting out. Then instead of faceting, use variable to drive the color. So first command produces the same output as shujaa’s answer, then the second command gives you all the lines on one plot with different colors and a legend.

    qplot(data = molten, x = V1, y = value, facets = . ~ variable, geom = "point")
    qplot(data = molten, x = V1, y = value, color = variable, geom = "point")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large data matrix with 5 columns. 5th column contains many zeros.
I have a large matrix M implemented as vector<vector<double> with m rows, i.e. the
I have a very large matrix (216 rows, 31286 cols) of doubles. For reasons
I have a very large matrix(10x55678) in numpy matrix format. the rows of this
I have a large dataframe (~ 600K rows) with a string-value column (link) doc_id,link
I have a large data set with 11 columns and 100000 rows (for example)
I have a large matrix: set.seed(1) a <- matrix(runif(9e+07),ncol=300) I want to sort each
I have a matrix of W of large row and column dimension. Each of
I have a large matrix of 0 s and 1 s, that is mostly
I have large set of flow charts and workflow diagrams. I want to draw

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.