Skip to content

tabstop in graphics

2 messages · Berry Boessenkool, David Winsemius

#
On Jan 14, 2013, at 1:51 PM, Berry Boessenkool wrote:

            
On my machine I get an empty box. Arguably your machines behavior is more correct. Scraping from pdf files that are arranged in columns produces some amusing results. In the Mac world, recent versions have had an option-select that allows one to capture columnar data, but before that people who did not have full version of Acrobat (not the Reader) were out of luck.
Highly software dependent. In the old days there were metal fins that could be moved up to stop the typewriter carriage. The `print.data.frame` function examines the maximum width for a column and then pads with sufficient leading spaces to get the colunms to line up.
`write.table` has no notion of tabs-widths. They are just used as separators and you are seeing some software viewer's behavior.
There is a phantom() function in plotmath that you could use to insert the proper width to column justify and then pad the missing space. Or you could use one of the Latex output devices. I get the sense that ggplot2 has the most code related to constructing legends but yours seems more like an annotation. Take a look at tableGrob in pkg::latticeExtra.