File:R-car stopping distances 1920-plain.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 360 × 360 pixels. Other resolutions: 240 × 240 pixels | 480 × 480 pixels | 768 × 768 pixels | 1,024 × 1,024 pixels | 2,048 × 2,048 pixels.
Original file (SVG file, nominally 360 × 360 pixels, file size: 44 KB)
File information
Structured data
Captions
Summary[edit]
DescriptionR-car stopping distances 1920-plain.svg |
English: Example used in the wikibook Statistical_Analysis:_an_Introduction_using_R, generated by
> svg("R-car_stopping_distances_1920-plain.svg", 4,4,8) > plot(dist ~ speed, data=cars) #It is easy to do a simple plot! > smooth.line <- lowess(cars$speed, cars$dist) #The "lowess" function fits a LOcally WEighted Scatterplot Smoother > lines(smooth.line, col="red") #"lines" adds lines to a plot, here the lowess (smooth-line) fit > straight.line.model <- lm(dist~speed, data=cars) #This creates and stores a model ("lm" means "Linear Model"). > abline(straight.line.model, col="red", lty=3) #abline is a simple function that plots a straight line > dev.off() |
Date | |
Source | Own work |
Author | HYanWong |
Licensing[edit]
Public domainPublic domainfalsefalse |
I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 23:22, 30 November 2008 | 360 × 360 (44 KB) | HYanWong (talk | contribs) | {{Information |Description={{en|1=Example used in the wikibook Statistical_Analysis:_an_Introduction_using_R, generated by <pre>> svg("R-car_stopping_distances_1920-plain.svg", 4,4,8) > plot(dist ~ speed, data=cars) #It is easy to do a |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Hidden categories: