MAKE A MEME View Large Image R-car stopping distances 1920-plain.svg en 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 ...
View Original:R-car stopping distances 1920-plain.svg (288x288)
Download: Original    Medium    Small Thumb
Courtesy of:commons.wikimedia.org More Like This
Keywords: R-car stopping distances 1920-plain.svg en 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 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 </pre> Created with R Own HYanWong 2008-11-30 Uncategorized 2015 March 23
Terms of Use   Search of the Day