Playing around with examples from MASS4, I found a font problem in the mosaicplot in R-2.3.0. It doesn't happen in other plots. Running this example from MASS4, page 326... library(MASS) caith1 <- as.matrix(caith) names(dimnames(caith1)) <- c("eyes", "hair") mosaicplot(caith1, color = TRUE) ...I get an image as attached. The column and row labels are unreadable. It is true for both x11() and png() devices. I can adjust the font sizes with the "cex.axis" argument and get a readable labels if the parameter is correct (0.8 works here), but the general problem it's not really the font sizes. There are small versions of the screen fonts that _are_ readable. I believe I should be able to get small, but readable labels. It's not possible to specify a font, because mosaicplot doesn't accept the "font.axis" parameter. Looking at the demo(graphics), I can also recognize some unreadable labels. Do you think it's only the matter of the X-Window system? Installed fonts? Any hints appreciated. Regards, Maciej -- Maciej Blizi?ski <m.blizinski at wit.edu.pl> http://automatthias.wordpress.com -------------- next part -------------- A non-text attachment was scrubbed... Name: caith.png Type: image/png Size: 3175 bytes Desc: not available Url : https://stat.ethz.ch/pipermail/r-help/attachments/20060521/7e97a2d7/attachment.png
Hi Maciej, fyi - on winxp-pro 2.3.0-patched and up to date MASS - I can clearly read the labels, except the start of the word 'black' is clipped, but the font size is fine. cheers, Sean On 21/05/06, Maciej Blizi?ski <m.blizinski at wit.edu.pl> wrote:> Playing around with examples from MASS4, I found a font problem in the > mosaicplot in R-2.3.0. It doesn't happen in other plots. Running this > example from MASS4, page 326... > > library(MASS) > caith1 <- as.matrix(caith) > names(dimnames(caith1)) <- c("eyes", "hair") > mosaicplot(caith1, color = TRUE) > > ...I get an image as attached. The column and row labels are unreadable. > It is true for both x11() and png() devices. > > I can adjust the font sizes with the "cex.axis" argument and get a > readable labels if the parameter is correct (0.8 works here), but the > general problem it's not really the font sizes. There are small versions > of the screen fonts that _are_ readable. I believe I should be able to > get small, but readable labels. It's not possible to specify a font, > because mosaicplot doesn't accept the "font.axis" parameter. > > Looking at the demo(graphics), I can also recognize some unreadable > labels. Do you think it's only the matter of the X-Window system? > Installed fonts? Any hints appreciated. > > Regards, > Maciej > > -- > Maciej Blizi?ski <m.blizinski at wit.edu.pl> > http://automatthias.wordpress.com > > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > > >
Hi all, I have a question regarding normality testing with the nortest package. I have to admit, my question is so general that it might more be suited a newsgroup such as sci.math. However, just in case it is implemented differently, I was hoping someone who has used it can help me out. I just want to double check that for all of the tests, the null hypothesis is whether or not the input distribution *differs* with the normal distribution. So, if you get a p-value less than (say) 0.05, you can reject the null hypothesis at a 95% confidence level and say that the input distribution is *not* normal. So these tests check/confirm whether a distribution is not normal...as opposed to confirming that it is normal. Does this sound about right? Ray
>>>>> "Maciej" == Maciej Blizi?ski <m.blizinski at wit.edu.pl> >>>>> on Sun, 21 May 2006 14:48:13 +0200 writes:Maciej> Playing around with examples from MASS4, I found a font problem in the Maciej> mosaicplot in R-2.3.0. It doesn't happen in other plots. Running this Maciej> example from MASS4, page 326... Maciej> library(MASS) Maciej> caith1 <- as.matrix(caith) Maciej> names(dimnames(caith1)) <- c("eyes", "hair") Maciej> mosaicplot(caith1, color = TRUE) Maciej> ...I get an image as attached. The column and row labels are unreadable. Maciej> It is true for both x11() and png() devices. ..................... Maciej> Looking at the demo(graphics), I can also recognize some unreadable Maciej> labels. Do you think it's only the matter of the X-Window system? Maciej> Installed fonts? Maciej> Any hints appreciated. Yes, it's a matter of the X - font server of your X-window system. As help(png) clearly notes, png() itself is also using the x11() internals. For me, the labels are all well readable for the above example; even here (at work) where the font server is still not providing correct font sizes too often for my taste -- e.g. when drawing graphs with the Rgraphviz package {from bioconductor}. Martin Maechler, ETH Zurich