I am not sure if this question is related to R or tikzDevice.
I simply use R
and the command plot(1)
.
The resulting graphic behave like a vector graphic. It's aspect ratio depends on the ratio of the window it is displayed in.
Can I set the aspect ratio explicite while calling plot()
?
xlim
doesn't affect the graphic output itself - just the content (the numbers on the x-axis).
Maybe there is a way with tikzDevice to fix the aspect ratio? The script I use with tikzDevice looks like this.
#!/usr/bin/R -f
# load the library
library(tikzDevice)
# the output file
tikz('plot.tex')
#
plot(1, xlab='X-Axis', ylab='Y-Axis')
dev.off()
@Moderators: Please add the tag 'tikzDevice'.