Sunday, December 5, 2010

How to place side by side graphs of R and paraview

First create graph from R:

pdf("R0001.pdf",width=7,height=8.48)
plot(test[1:1432,2],test[1:1432,3]/pi,xlim=c(-15,30),ylim=c(0,1),xlab="W0",ylab="theta",'l',col="blue")
points(test[1000,2],test[1000,3]/pi,pch=20)
dev.off()

Second create graph from Paraview using left-right split, and save the file in "P0001.pdf".

Third, combine the two graphs
pdftk R0001.pdf P0001.pdf cat output C0001.pdf
java -cp ~/local/Multivalent20060102.jar tool.pdf.Impose -dim 1x2 -verbose -layout "1,2" C0001.pdf
pdfcrop C0001-up.pdf
You will get C0001-up-crop.pdf as the final result.

No comments:

Visitors