Dan Linden
2006-Jul-21 15:43 UTC
[R] Problems with character spacing in windows metafiles...
This problem was posted a couple years ago here: http://tolstoy.newcastle.edu.au/R/help/04/01/0231.html Using Windows XP with R 2.3.1, I am now experiencing the same problem again: when a plot is saved and/or copied as a WMF, the labels do not have the correct character spacing. I am trying to insert the WMF into a MS Word 2003 document (my first mistake, I know), but even when the WMF is opened with other graphics software, the problem remains. Must be something with the way the WMF is written. The strange this is that I was able to do this on another computer with a slilghtly older version of R (2.2.x?), and did not have the problem. The version of Microsoft Word was the same on both, and the code did not matter (any basic plot with any font had its text labels squeezed). I've done some searching and haven't come up with any good solutions. For Windows users, the WMF is the most convenient format for saving vector graphics. EPS is not an option for me. Any help would be greatly appreciated. Cheers, Dan -- View this message in context: http://www.nabble.com/Problems-with-character-spacing-in-windows-metafiles...-tf1980921.html#a5435945 Sent from the R help forum at Nabble.com.
I am using the multcomp package for doing multiple comparisons. Since the data I am handling is huge the number of comparisons are also large. I am interested in: 1> Breaking down my plots to get rid of the clutter that happens when plotting the entire data set. How do I pass only part of the data to the plot function ? fungus.cirec<-simint(Fungus.yield~Habitat, data=fungus,conf.level=0.95,type =c("Tukey")) plot(fungus.cirec) #This plots the entire data. I want to plot part of the data only 2>I am also interested in getting rid of the field name associated with each categorical variable. Here is what the part of the data looks like Habitat Fungus.yield Birch 20.83829053 Birch 22.9718181 Birch 22.28216829 Birch 24.23136797 Birch 22.32147961 Birch 20.30783598 Oak 27.24047258 Oak 29.7730014 Oak 30.12608508 Oak 25.76088669 Oak 30.14750974 Hornbeam 17.05307949 Hornbeam 15.32805111 Hornbeam 18.26920177 Hornbeam 21.30987049 Hornbeam 21.7173223 When it plots labels it as HabitatBirch-HabitatOak for example. How do I get rid of the field name Habitat in the plot? 3> How do I tell the method to mark the significant comparisons? (i.e those that do not intersect the zero line). Thanks ../Murli
Dan Linden
2006-Jul-21 18:48 UTC
[R] Problems with character spacing in windows metafiles...
I finally determined the problem, but not the specific cause. For some reason, the WMF is resized when saved or copied from R. If you compare the same plot pasted into PowerPoint as both a bitmap and a WMF, the WMF has its height increased ~14% and its width decreased ~5% consistently. This is true whether you copy/paste or save the WMF. At least, that is what occurs on my Windows XP machine with Office 2003 and R 2.3.1 installed. -- View this message in context: http://www.nabble.com/Problems-with-character-spacing-in-windows-metafiles...-tf1980921.html#a5438500 Sent from the R help forum at Nabble.com.