phy-4660/xrd/plots.R

38 lines
971 B
R
Raw Normal View History

2017-04-18 09:45:23 +00:00
x = seq(from = 5.00547782,to = 119.99571965,length.out = 13763)
grease_count = read.table("grease.tab")
plastic_count = read.table("plastic.tab")
wood_count = read.table("wood.tab")
plot(x=x,y=plastic_count[,1],pch='-',log="x",ylab=expression(count),xlab=expression(2~theta~degree~")"),xlim=c(12,55))
2017-04-18 03:07:01 +00:00
abline(v=42.5)
axis(3,at=42.5)
abline(v=30.5)
axis(3,at=30.5)
2017-04-18 09:45:23 +00:00
abline(v=14)
axis(3,at=14)
2017-04-18 03:07:01 +00:00
2017-04-18 09:45:23 +00:00
dev.print(pdf,"../report/plastic_peaks.pdf",width=3,height=3)
2017-04-18 03:07:01 +00:00
2017-04-18 09:45:23 +00:00
plot(x=x,y=grease_count[,1],pch='-',log="x",ylab=expression(count),xlab=expression(2~theta~degree~")"))
2017-04-18 03:07:01 +00:00
abline(v=12)
axis(3,at=12)
abline(v=22)
axis(3,at=22)
2017-04-18 09:45:23 +00:00
dev.print(pdf,"../report/grease_peaks.pdf",width=3,height=3)
2017-04-18 03:07:01 +00:00
2017-04-18 09:45:23 +00:00
plot(x=x,y=wood_count[,1],pch='-',log="x",ylab=expression(count),xlab=expression(2~theta~degree~")"),xlim=c(15,55))
2017-04-18 03:07:01 +00:00
abline(v=16)
axis(3,at=16)
2017-04-18 09:45:23 +00:00
abline(v=22.5)
axis(3,at=22.5)
2017-04-18 03:07:01 +00:00
abline(v=34.5)
axis(3,at=34.5)
abline(v=46)
axis(3,at=46)
2017-04-18 09:45:23 +00:00
dev.print(pdf,"../report/wood_peaks.pdf",width=3,height=3)