Displaying 1 result from an estimated 1 matches for "cex_pt".
Did you mean:
cept
2012 Jul 03
1
Problem using mtext to write onto a jpeg
...I am trying to write figures directly to a file using the jpeg() function.
this_ylab=expression(paste("P",sep="")~lambda)
this_xlab=expression(rho)
jpeg("file_name.jpeg",width=100,height=100,units="mm",res=300)
plot(input_values,output_values,pch=16,cex=cex_pt,xlab="",frame.plot=T,ann=F,axes=F)
axis(side=2)
axis(side=1,labels=T,xlab="")
mtext(this_xlab,side=1,line=4,cex=2)
mtext(this_ylab,side=2,line=3,cex=2)
dev.off()
However, I get the following error message:
Error in mtext(this_xlab, side = 1, line = 4, cex = 2) :
Metric in...