Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
# a postscript example
postscript(file= "image_name.ps", paper="special", width = 9, height = 7, onefile = TRUE, horizontal=FALSE)
ds.histogram(x='D$LAB_HDL')
ds.histogram(x='D$LAB_HDL', type='split')
dev.off()

Write the R console screen to file

In some cases the non-disclosive data used to create an image may be required, this can be printed to file using the capture.output R function:

Code Block
xml
xml

# print to file the non-disclosive data that comprises a histogram
out<-capture.output(ds.histogram(x='D$LAB_HDL'))
cat(out,file="name.txt",sep="\n",append=TRUE)
Tip

All arguments to customise the above functions can be found in their respective function manual pages.