PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: stock market

Using R: Frequency Distributions, Histograms, Scatterplots ...

1 Using R: Frequency Distributions, Histograms, Scatterplots , & Line GraphsThis document describes how to accomplish the following tasks. Making a Frequency Tabletable(data)2 Here we create a Frequency table from raw data imported from a .CSV file. We also see how to appenda relative and cumulative Frequency table to the original Frequency table. Making Histogramshist(data)4 Here use thehistcommand to make a fast and dirty histogram and demonstrate how to add somebells and whistles. Making Scatterplotsplot(x-data, y-data)5 Using theplotcommand. Making Line Graphs and Time Series Plotplot(time-data, y-data)6 Using theplotcommand when thex-values are we use to correctly read dates. Entering Data Making a Data List (vector)list-name <- c(#, #, #, .., #)7 Making a Table (matrix)table-name <- matrix( ..)7 Importing Data from a CSV File8table-name <- (file=" ", ..)ortable-name <- (" ",header=TRUE,sep=",")2 Frequency Tables in R:In the textbook, we took 42 test scores for male students and put the resultsinto a Frequency on Test #2 - Males42 Scores: Average = Data becomes OrganizedMalesScoresFrequency30 - 39140 - 49350 - 59560 - 69970 - 79680 - 891090 - 998 Then we created a relative and cumulative Frequency table from :MalesScoresFrequency30 - 39140 - 49350 - 59560 - 69970 - 79680 - 891090 - 998 RelativeFrequencyDistribution:MalesRelat iv

Here we have R create a frequency table and then append a relative and cumulative table to it. Everything in red is typed by the user.Everything in blue is output to the console. { The classes are de ned by creating a list of class boundaries.

Loading..

Tags:

  Using, Append

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Transcription of Using R: Frequency Distributions, Histograms, Scatterplots ...

Related search queries