Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import data and create a scatter plot in R?

Tags:

r

I have 334 records, with two columns:

  • Column (1): Resolution
  • Column (2): Number of images with a specific resolution

How can I make a scatter plot in R with this data? Is there a way to import the records, since it will be time consuming to enter 334 records?

like image 966
Simplicity Avatar asked Aug 05 '11 10:08

Simplicity


People also ask

How do you plot imported data in R studio?

In RStudio, click on “Import Dataset” and choose “From Text File.” Choose the csv file in which you saved the table. In the window that will preview your data, name your data frame “att”. To begin making the plot, choose the data frame and set the aesthetics to the variables to be included in the plot.

How do you put data into a scatter plot?

Select the data you want to plot in the scatter chart. Click the Insert tab, and then click Insert Scatter (X, Y) or Bubble Chart. Click Scatter. Tip: You can rest the mouse on any chart type to see its name.


1 Answers

If you do not know how to get data into R nor create a scatterplot, it sounds like you are very new to R.

You might want to use a program that lends a hand.

  • rstudio has a Workspace - import dataset menu; I'd recommend Rstudio, particularly if you are very new to R.
  • Rcmdr also has GUI options for getting data into R

As always Quick-R provides a helpful starting point:

  • importing data
  • scatterplots

More generally, it sounds like you need to spend some time with some introductory instructional material on R. Here are my suggested startings points.

like image 154
Jeromy Anglim Avatar answered Oct 13 '22 19:10

Jeromy Anglim