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

  • Home
  • SEARCH
  • 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 8650687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:53:06+00:00 2026-06-12T13:53:06+00:00

How to plot in R like this(same as the graphs) ? Could you please

  • 0

How to plot in R like this(same as the graphs) ? Could you please post the R code in your answer?

I am a R beginner and I find it is difficult to plot in R for me.


Thank you !

  • 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-12T13:53:07+00:00Added an answer on June 12, 2026 at 1:53 pm

    The bottom graph is called a “parallel coordinates plot”. You can do a quick Google search to find several ways of doing this in R. Here are two, both using the “iris” dataset.

    1. ggplot2

      With this approach, you basically say which columns have the data you want to plot, and specify your grouping variable using geom_line().

      library(ggplot2)
      p <- ggpcp(iris, vars = names(iris[1:4]))
      p + geom_line(aes(color = Species))
      

      enter image description here

    2. MASS

      The approach here is similar. First specify your data, then specify how your data are grouped (in the case of the “iris” dataset, there are three species, with 50 observations each).

      library(MASS)
      parcoord(iris[-5], col = rep(1:3, each = 50))
      

      enter image description here

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

Sidebar

Related Questions

I have a data like this. Is there any way to smoothen my plot
I have a list to which I append Axes3D plots. Like this: self.myList.append(self.axes.plot(xValues, yValues,
Imagine I am plotting e.g. this: plot(1:1500,1:1500) This will look like the image below,
I would like to plot y1 and y2 in the same plot. x <-
I was trying to use ggplot to plot monthly data that looks like this
I would like to have in the same figure a line plot and a
I like to plot two groups of lines in the same plot. Each group
Can I plot charts like this http://developer.yahoo.com/yui/examples/charts/charts-rotation.html using flot ? I mean, I have
Is there a python module that will do a waterfall plot like MATLAB does?
I am using igraph for plotting a graph in R doing something like plot(mygraph,

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.