[R] Lattice: how to reduce/shrink plot area

K. Elo maillists at nic.fi
Thu Sep 25 07:23:16 CEST 2008


Hi,

is there a command or parameter for reducing the plotting area with
lattice? What I am looking for is an option similar to 'mai' or 'mar'
from the graphs package.

Background: I have plotted several charts with horizontal stacked bars
and now I would like to add info about percentages of each "sub bar"
beneath the plot (with mtext (?) ). So the plot should look something
like this:

 | AAABBBBBBCCCCD | 30 35 20 15
 |                |
 | AAAAAAABBCCDDD | 50 15 15 20
 |                |
 | AABBBBBBBBBBCD | 15 65 10 10

Or is there a better way for achieving what I am looking for?

Thanks in advance for Your help!

Regards,
Kimmo



More information about the R-help mailing list