Displaying 1 result from an estimated 1 matches for "cussoniaholstii".
2011 Apr 13
1
print to .jpeg
Evening folks,
I'm trying to print a series of graphs to .jpeg using a variable as the
title, but run into the difficultly that I can't find a way to append the
file extension to the .jpeg (in this case extensionless!) files.
Example:
----
species.name="CussoniaHolstii"
dia<-10:100
biomass = -21.4863 + 0.5797 * (dia ^ 2)
biomass
jpeg(species.name)
plot (biomass, main=species.name, xlab="dbh in cm", ylab="biomass in kg")
-----
The output is CussoniaHolstii, but I want CussoniaHolstii.jpg. The help file
for jpeg() specifies that the name...