Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
kvalobs:kvoss:system:qc2:8hdk376snf09zj37dk82s92:ncdf [2009-06-20 23:36:06] paule |
kvalobs:kvoss:system:qc2:8hdk376snf09zj37dk82s92:ncdf [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 15: | Line 15: | ||
$ R CMD INSTALL ncdf | $ R CMD INSTALL ncdf | ||
$ history | $ history | ||
+ | ... | ||
+ | ... | ||
+ | # there are perhaps even easier ways to do this: | ||
+ | |||
+ | $ install.packages(" | ||
+ | |||
+ | # no source was linked ... but the mirror choose automatically opens | ||
+ | # and one just selects a site and the install happens! | ||
+ | ... | ||
+ | $ | ||
</ | </ | ||
Line 22: | Line 32: | ||
$ R | $ R | ||
| | ||
+ | | ||
| | ||
nd = open.ncdf(" | nd = open.ncdf(" | ||
Line 33: | Line 44: | ||
| | ||
| | ||
- | | + | jpeg(filename=paste(Shortname,' |
- | | + | plot(xxx, |
+ | XC=cor(xxx, | ||
ff <- lm(xxx ~ yyy) | ff <- lm(xxx ~ yyy) | ||
| | ||
Line 40: | Line 52: | ||
| | ||
# | # | ||
- | text(10, | + | text(0, |
- | text(10, | + | text(0,90,paste(" |
- | text(10, | + | text(0,85,paste(" |
- | text(10, | + | text(0,75,paste(" |
+ | | ||
- | |||
</ | </ | ||
+ | |||
+ | Alternatively, | ||
+ | < | ||
+ | $ Rscript plot_netcdf.R "Test Plot" OUTPUT | ||
+ | </ | ||
+ | that will produce the file OUTPUT.jpg with the plot title "Test Plot". | ||
+ | * {{kvalobs: | ||
+ | |||
+ |