RE: [R] font sizes for row.names of dendograms
The error message states that you are passing a parameter called cex which has not been used. If you look at ?plclust more closely you will see it does not have cex parameter. However the S3 method for class hclust, plot, does? So does this help? hc <- hclust(dist(USArrests), "ave") plot(hc,cex = 0.5) Tom > -Original Message- > From: Brett Stansfield [mailto:[EMAIL PROTECTED] > Sent: Thursday, 24 March 2005 11:42 AM > To: R help (E-mail) > Subject: [R] font sizes for row.names of dendograms > > > Dear R > I recently performed a cluster analysis. It produced the dendogram no > problem but unfortunately the font size of the row.names were > all cluttered > due to their large size > So I tried to change the font size using > plclust(cluster.results, labels=iris$specie, cex=0.8) > > and R came back to me saying > Error in plclust(cluster.results, labels = iris$specie, cex = 0.8) : > unused argument(s) (cex ...) > > > what am I doing wrong here > > brett stansfield > > __ > R-help@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 > __ R-help@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
[R] font sizes for row.names of dendograms
Dear R I recently performed a cluster analysis. It produced the dendogram no problem but unfortunately the font size of the row.names were all cluttered due to their large size So I tried to change the font size using plclust(cluster.results, labels=iris$specie, cex=0.8) and R came back to me saying Error in plclust(cluster.results, labels = iris$specie, cex = 0.8) : unused argument(s) (cex ...) > what am I doing wrong here brett stansfield __ R-help@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
Re: problems with par and startup (was Re: [R] font sizes)
Adaikalavan Ramasamy wrote: Well, one way you can try is to define the different styles you want in your $HOME/.Rprofile file (see ?Startup). For example --- library(graphics) op <- par(no.readonly = TRUE) # store original par par0 <- function(){ par(op) } # restore original par par1 <- function(){ par(lty=1, pch = "X") } par2 <- function(){ par(col=2, cex.axis=0.1)} dev.off() # kills the empty window spawned by par --- A typical call might be par1(); plot(1:5); par0() par2(); plot(1:10); par0() It would be more useful to write this as a parser but I do not know how. BTW, why does calling par(), even with no.readonly=TRUE argument always insists on opening a graphics window when there is none present. This is a little bit annoying as the focus changes to the plotting window. Does anyone know how to turn this feature off ? par() applies setting to the current device (or get from the current device). If no device has been opened and par() is called, a device is opened to get the settings from. Uwe Ligges Regards, Adai On Wed, 2005-03-16 at 09:53 +, Simon.Bond wrote: Having experimented with both a sun workstation and a PC, changing pointsize within the PC does have the desired effect, but it does nothing within the Sun. Unforutnately, the PC won't let me load the workspace I want (which I normally access through the sun) due to `lazy loading' errors. Thinking more generally, although I think the ability to fine tune R graphics is excellent, even superlative, what I would find really useful is means to load a whole load of graphical settings in one go; one setting to look at on-screen, one setting for written reports, one setting for slides. Can anyone suggest a good way of going about this. thanks Simon On Tue, 15 Mar 2005, Uwe Ligges wrote: Simon.Bond wrote: I'm trying to use the pdf() function, and would like to increase the font size for slide-presentation purposes. Changing the argument `pointsize' doesn't seem to do anything. Anyone come across this or know what to do? It does, e.g. compare pointsize=8 / pointsize=14 If you want something different, maybe setting argument "cex" (and friends) in par() does what you want. See ?par. Uwe Ligges thanks Simon Bond. - /"\ \ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL X - AGAINST MS ATTACHMENTS / \ http://www.gnu.org/philosophy/no-word-attachments.html __ R-help@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 - /"\ \ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL X - AGAINST MS ATTACHMENTS / \ http://www.gnu.org/philosophy/no-word-attachments.html __ R-help@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 __ R-help@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
problems with par and startup (was Re: [R] font sizes)
Well, one way you can try is to define the different styles you want in your $HOME/.Rprofile file (see ?Startup). For example --- library(graphics) op <- par(no.readonly = TRUE) # store original par par0 <- function(){ par(op) } # restore original par par1 <- function(){ par(lty=1, pch = "X") } par2 <- function(){ par(col=2, cex.axis=0.1)} dev.off() # kills the empty window spawned by par --- A typical call might be par1(); plot(1:5); par0() par2(); plot(1:10); par0() It would be more useful to write this as a parser but I do not know how. BTW, why does calling par(), even with no.readonly=TRUE argument always insists on opening a graphics window when there is none present. This is a little bit annoying as the focus changes to the plotting window. Does anyone know how to turn this feature off ? Regards, Adai On Wed, 2005-03-16 at 09:53 +, Simon.Bond wrote: > Having experimented with both a sun workstation and a PC, changing > pointsize within the PC does have the desired effect, but it does nothing > within the Sun. > > Unforutnately, the PC won't let me load the workspace I want (which > I normally access through the sun) due to `lazy loading' errors. > > Thinking more generally, although I think the ability to fine tune R > graphics is excellent, even superlative, what I would find really useful > is means to load a whole load of graphical settings in one go; one setting > to look at on-screen, one setting for written reports, one setting for > slides. Can anyone suggest a good way of going about this. > > thanks Simon > > On Tue, 15 Mar 2005, Uwe Ligges wrote: > > > Simon.Bond wrote: > > > > > I'm trying to use the pdf() function, and would like to increase the font > > > size for slide-presentation purposes. Changing the > > > argument `pointsize' doesn't seem to do anything. > > > > > > Anyone come across this or know what to do? > > > > > > It does, e.g. compare pointsize=8 / pointsize=14 > > > > If you want something different, maybe setting argument "cex" (and > > friends) in par() does what you want. See ?par. > > > > Uwe Ligges > > > > > thanks > > > > > > Simon Bond. > > > > > > - > > > /"\ > > > \ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL > > > X - AGAINST MS ATTACHMENTS > > > / \ > > > > > > http://www.gnu.org/philosophy/no-word-attachments.html > > > > > > __ > > > R-help@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 > > > > > > - > /"\ > \ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL > X - AGAINST MS ATTACHMENTS > / \ > > http://www.gnu.org/philosophy/no-word-attachments.html > > __ > R-help@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 > __ R-help@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
Re: [R] font sizes
Having experimented with both a sun workstation and a PC, changing pointsize within the PC does have the desired effect, but it does nothing within the Sun. Unforutnately, the PC won't let me load the workspace I want (which I normally access through the sun) due to `lazy loading' errors. Thinking more generally, although I think the ability to fine tune R graphics is excellent, even superlative, what I would find really useful is means to load a whole load of graphical settings in one go; one setting to look at on-screen, one setting for written reports, one setting for slides. Can anyone suggest a good way of going about this. thanks Simon On Tue, 15 Mar 2005, Uwe Ligges wrote: > Simon.Bond wrote: > > > I'm trying to use the pdf() function, and would like to increase the font > > size for slide-presentation purposes. Changing the > > argument `pointsize' doesn't seem to do anything. > > > > Anyone come across this or know what to do? > > > It does, e.g. compare pointsize=8 / pointsize=14 > > If you want something different, maybe setting argument "cex" (and > friends) in par() does what you want. See ?par. > > Uwe Ligges > > > thanks > > > > Simon Bond. > > > > - > > /"\ > > \ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL > > X - AGAINST MS ATTACHMENTS > > / \ > > > > http://www.gnu.org/philosophy/no-word-attachments.html > > > > __ > > R-help@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 > > - /"\ \ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL X - AGAINST MS ATTACHMENTS / \ http://www.gnu.org/philosophy/no-word-attachments.html __ R-help@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
Re: [R] font sizes
Simon.Bond wrote: I'm trying to use the pdf() function, and would like to increase the font size for slide-presentation purposes. Changing the argument `pointsize' doesn't seem to do anything. Anyone come across this or know what to do? It does, e.g. compare pointsize=8 / pointsize=14 If you want something different, maybe setting argument "cex" (and friends) in par() does what you want. See ?par. Uwe Ligges thanks Simon Bond. - /"\ \ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL X - AGAINST MS ATTACHMENTS / \ http://www.gnu.org/philosophy/no-word-attachments.html __ R-help@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 __ R-help@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
[R] font sizes
I'm trying to use the pdf() function, and would like to increase the font size for slide-presentation purposes. Changing the argument `pointsize' doesn't seem to do anything. Anyone come across this or know what to do? thanks Simon Bond. - /"\ \ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL X - AGAINST MS ATTACHMENTS / \ http://www.gnu.org/philosophy/no-word-attachments.html __ R-help@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