Transcription of Using R: Frequency Distributions, Histograms, Scatterplots ...
{{id}} {{{paragraph}}}
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 iveScoresFrequency30.
Using R: Frequency Distributions, Histograms, Scatterplots, & Line Graphs ... Importing Data: Since all of the other software packages will easily convert a data le into a CSV le, we will use this format to read the data into R. The screenshot below depicts how to read such a …
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}