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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:06:00+00:00 2026-06-13T12:06:00+00:00

I am having real trouble in making mutliple boxplots in single plot… I have

  • 0

I am having real trouble in making mutliple boxplots in single plot…
I have five variables three are numeric and two are Factor. I want boxplot for all three numerical variables but grouped by the two Factor variable… The plot shoud have two groups each for Low and High with three boxes for MM, ND and BB. legends should contain the abbrevations for MM, ND and BB.

Group   Class   Sal Wal Daa
MM  Low 21  34  4
ND  Low 23  65  3
BB  High    21  34  2
MM  High    25  23  4
MM  High    23  23  5
MM  High    13  54  6
MM  High    56  32  4
MM  Low 34  13  3
ND  Low 12  35  7
ND  Low 34  34  2
ND  Low 54  54  1
ND  High    32  34  6
ND  High    43  32  7
BB  Low 54  13  3
BB  Low 12  56  2
BB  Low 45  34  6
BB  High    32  32  3
BB  High    13  12  2
BB  High    54  12  5
  • 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-13T12:06:01+00:00Added an answer on June 13, 2026 at 12:06 pm

    If you want to have a separate group of boxplots for each numeric variable, you can use the interaction() function to group variables by Group and Class:

    test.data <- data.frame(Sal=rnorm(100),
                            group=factor(sample(LETTERS[1:3], 100, replace=TRUE)),
                            class=factor(sample(c("low","high"), 100, replace=TRUE)))
    boxplot(Sal ~ interaction(group,class), data=test.data)  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having real trouble with provisioning and code signing issues. I have migrated
I have been having some real trouble with this for a while. I am
Probably something really simple, but I'm having some real trouble with it. I have
Been having real trouble with this one and wondered if someone may have found
I am having real trouble installing SUDS in python 2.6.4. I have tried to
Ok.. having some real trouble putting two SWF videos into a website for my
Having real trouble wrapping my head around coldfusion.ajax.submitform. I have the call to my
I have the following scenario: User->HABTM->businesses Suppliers->HABTM->businesses Suppliers->HAS_MANY->Payments I am having real trouble working
I'm having a real trouble to get accents right, and I believe this may
I'm having real trouble with the AddressBook and memory. I want it to return

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.