Colour, size and legend in plotellipses

603 views
Skip to first unread message

Lynn

unread,
Jul 5, 2012, 10:24:50 AM7/5/12
to factomin...@googlegroups.com
I want to use plotellipses of an MFA for a publication. I used the following code  plotellipses(mfa2,keepvar=1, label="none"). This generates a plot with legend and the points and ellipses coloured red and black. This is no good for publication in a black and white journal. Can I change to black filled and open, with ellipses black and dashed?

Also, I can't add axis labels to this plot.

If I can't use plot ellipses, can you tell me how to access the numbers that generate it, so I can make my own plot, coloured according to variable 1.

Thanks

Lynn

François Husson

unread,
Jul 6, 2012, 3:30:48 AM7/6/12
to factomin...@googlegroups.com
Dear Lynn,

Since the function plotellipses uses the lattice package, you can use the following lines of code:
trellis.device(device="pdf",theme=standard.theme("postscript"),file="MyGraph.pdf")  ## this line define the file where a graph in black and white will be saved
plotellipses(res)    ### you put here all the lines of code to define your graph
dev.off()                #### you close the graph

If you want to visualize the graph, you can do:
trellis.device(device="X11",theme=standard.theme("postscript"))
plotellipses(res)   

For your second question, you cannot add the axis label (there is already a name for the axis label).

Best
FH

Claude Vogel

unread,
Jul 6, 2012, 7:38:41 AM7/6/12
to factomin...@googlegroups.com
IMO, the easiest way to prepare an R chart for publication is to save in emf format and reopen in Inkscape (open source). Then ungroup elements and do whatever is appropriate, then resave in png etc. I do that all the time to adjust colors, shades etc.

Claude

Lynn

unread,
Jul 6, 2012, 1:17:15 PM7/6/12
to factomin...@googlegroups.com
Thank you very much.
Reply all
Reply to author
Forward
0 new messages