File:R-car stopping distances 1920-plain.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 360 × 360 pixels, file size: 44 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
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()
 
This W3C-unspecified chart was created with R.
Date
Source Own work
Author HYanWong

Licensing[edit]

Public domain 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/TimeThumbnailDimensionsUserComment
current23:22, 30 November 2008Thumbnail for version as of 23:22, 30 November 2008360 × 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

There are no pages that use this file.