Skip to content
Prev 65666 / 398506 Next

Lattice device page options-margins

Thanks for the suggestions. None of these do exactly what I want. I have
some multi panel plotts
Excepted Commands:
BC.PP<-bwplot(PP.PAH ~ Area, Crab, horizontal = FALSE,
        ylab = "Priority Pollutant PAHs (mg/kg)",
        scales = list(x="free",rot=90),  aspect = 1.5,
        main = list(label = "Blue Crabs",cex=0.8,font=1),
        fontfamily = "HersheySans")
RM.PP<-bwplot( PP.PAH ~ Area, Mussel, horizontal = FALSE,
        ylab = "",
        scales = list(x="free",rot=90), aspect = 1.5,
        main = list(label="   Ribbed Mussels",cex =0.8,font=1),
        fontfamily = "HersheySans")
print(BC.PP, split = c(1,1,2,1), more = TRUE )
print(RM.PP, split = c(2,1,2,1),more = TRUE )
grid.text(label = "Figure 6. Priority Pollutant PAH Tissue
Concentrations",
          x = unit(0.01, "npc"), y = unit(0.1, "npc"),
          just = "left", rot = 0,
          check.overlap = FALSE, default.units = "npc",
          name = NULL, gp = gpar(fontsize = 10, font = 2), draw = TRUE)
grid.text(label = "Privileged and Confidential \nAttorney Work Product",
          x = unit(0.01, "npc"), y = unit(0.95, "npc"),
          just = "left", rot = 0,
          check.overlap = FALSE, default.units = "npc",
          name = NULL, gp = gpar(fontsize = 6, font = 3), draw = TRUE)


All of the suggestions shrink the individual boxplots so they both now
have empty space on the left size. I guess what I really want is to be
able define the plotting area as a portion of the page, allowing for a
blank region on the left. Basically defining the margin of the print
area.

BSomething like:
trellis.device(device = "pdf",file = "Figure6.pdf",color = FALSE,left =
0.1, right = 0.9)
Assuming the hypothetical left and right commands set the print area for
the pdf. Hopefully this better defines my "ideal solution".

Thanks for the suggestions, if an ideal solution can not be found I at
least have enough to develop a work around.  It just too bad I hadn't
though of this issue before writing so many scripts to make my plots
that will now have to be adjusted manually.

Mike