From Wikipedia, the free encyclopedia

[edit] Summary
| Description |
Illustration of the effect of different form removal techniques on surface finish analysis.
|
| Source |
self-made
|
| Date |
2008-03-28
|
| Author |
Emok
|
Permission
(Reusing this image) |
see below
|
[edit] R Source Code
library(RSvgDevice)
turned_raw<-read.csv("turned_raw.csv", skip=10, header=TRUE)
devSVG("turned_form_linear.svg", width=12, height=4)
par(mfrow=c(1,2))
plot(turned_raw$mm, turned_raw$um, type='n', xlab='profile height', ylab='trace length')
abline(h=0)
lines(turned_raw$mm, turned_raw$um, type='l', col='black')
linear<-lm(turned_raw$um~turned_raw$mm)
lines(turned_raw$mm, linear$fit, col='white', lwd=3)
lines(turned_raw$mm, linear$fit, col='red')
plot(turned_raw$mm, turned_raw$um, type='n', xlab='profile height', ylab='trace length')
abline(h=0)
lines(turned_raw$mm, linear$res, type='l', col='blue')
dev.off()
devSVG("turned_form_poly4.svg", width=12, height=4)
par(mfrow=c(1,2))
plot(turned_raw$mm, turned_raw$um, type='n', xlab='profile height', ylab='trace length')
abline(h=0)
lines(turned_raw$mm, turned_raw$um, type='l', col='black')
poly<-lm(turned_raw$um ~ I(turned_raw$mm^4) + I(turned_raw$mm^3) + I(turned_raw$mm^2) + I(turned_raw$mm))
lines(turned_raw$mm, poly$fit, col='white', lwd=3)
lines(turned_raw$mm, poly$fit, col='red')
plot(turned_raw$mm, turned_raw$um, type='n', xlab='profile height', ylab='trace length')
abline(h=0)
lines(turned_raw$mm, poly$res, type='l', col='blue')
dev.off()
|
I, the copyright holder of this work, hereby publish it under the following licenses:
You may select the license of your choice.
|
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Dimensions | User | Comment |
| current | 17:03, 28 March 2008 | 1,052×744 (1.93 MB) | Emok | |
File links
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):