search for: fontsize

Displaying 20 results from an estimated 149 matches for "fontsize".

2007 Sep 19
4
fontsize in mosaic plot lables
Hi List, I am trying unsucessfully to modify the fontsize of lables in mosaic: require(vcd) mosaic(Titanic, pop=FALSE, labeling_args=list(rot_labels=c(bottom=90,top=90), set_varnames = c(Sex = "Gender"), gp_text=gpar(fontsize=20))) #can't get it to resize text tab <- ifelse(Titanic < 6, NA, Titanic) # it works for la...
2003 Apr 04
3
trellis.graphic in for-loop
Hi list, I am unsuccessfully trying to produce a serious of trellis barcharts from within a for-loop. The barcharts work outside the loop. What am I missing? Example attached. Thanks Herry #XXXXXXXXXXXXXXXXXXXXXX trellis.device(bg="white") trellis.par.get("fontsize")->fontsize fontsize$default<-16 trellis.par.set("fontsize",fontsize) a<-c(1,2,4,5,4,3,3,3) b<-c(2,5,1,1,1,3,3,3) c<-c(3,5,1,2,2,5,5,5) as.data.frame(cbind(a,b,c))->q21 varnames<-colnames(q21) i<-9999 for (i in 1:3) { round(table(q21[,i])/sum(table(q21[,i])),...
2001 Jan 09
1
Setting fontsize in dev.copy2eps
I have a figure on screen with a legend. I want to copy this image to EPS, and use: dev.copy2eps(file="file1.eps", width=5, height=5) The legend that looks OK on screen doesn't look OK in the PostScript image: the text extends out of the box. I try adding a fontsize command: dev.copy2eps(file="file1.eps", width=5, height=5, pointsize=5) This options seems to get ignored. I try setting cex to a smaller value, replotting the figure, and copying the result to EPS. Result: the font is smaller, but so is the text. Legend text still expands outside...
2008 Sep 26
2
adjusting textsize and spacing in mosaic (vcd package)
...a mosaic plot (the grid version, not the base graphics one). Here's an example to demonstrate: #Basic plot library(vcd) mosaic(HairEyeColor, shade = TRUE) #Bad first guess: this stops the default cell colouring, and doesn't change the font size mosaic(HairEyeColor, shade = TRUE, gp=gpar(fontsize=16)) #This successfully changes most of the text sizes, but not the numbers on the legend scale mosaic(HairEyeColor, shade = TRUE, labeling_args=list(gp_labels=gpar(fontsize=16), gp_varnames=gpar(fontsize=18)), legend_args=list(fontsize=16), margins=unit(4, "lines"),...
2008 Jan 12
2
Lattice equivalent of par(mfrow = )
Dear r-helpers, Does anyone have a straightforward example of putting together three unrelated (expect for a common y-axis) xyplot() figures in what would be in base graphics a par(mfrow = c(1, 3)) arrangement? _____________________________ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400 Charlottesville, VA 22904-4400 Parcels: Room 102
2007 Apr 25
1
barchart producing incorrect number of barcharts when columns renamed
...when I reset the column titles. Not Clipped Clipped Errs 20 (18) 71 (46) Stops 32 (24) 46 (36) The following is the code used to create the barcharts with sample text output below it. library('lattice') rm(list=ls()) textFontSize=6; pdf('../data/cocaineBarcharts.pdf', paper='a4') fontsize=trellis.par.get("fontsize"); fontsize$text=textFontSize; trellis.par.set("fontsize", fontsize); resultsDirs=c("../data/Group.results.noclipping", "../data/ Group.results.clipped");...
2002 Dec 06
2
Controlling graphics parameters in lattice
...es, etc.). [I'm actually using xyplot via plot.effect() in the car package, and would like to be able to set some global defaults.] I read ?xyplot and ?trellis.par.set-- which contains no complete list of parameters, just a reference to print(trellis.par.get()) > print(trellis.par.get()) $fontsize $fontsize$default [1] 10 I tried > trellis.par.set("fontsize", 12) > data(quakes) > Depth <- equal.count(quakes$depth, number=8, overlap=.1) > xyplot(lat ~ long | Depth, data = quakes) And this crashes the Rgui (Windows, R 1.6.1). Is this a buglet or did I do...
2013 May 21
1
Lattice, ggplot, and pointsize
...nserting R plots into a document using odfWeave, I fought for a while to get Lattice plots use the same text size as base plots. I eventually discovered that specifying a point size via e.g. svg(pointsize=10) has no effect on Lattice plots. One needs to adjust the size manually via: trellis.par.set(fontsize=list(text=10, points=8)) This is also developed for both Lattice and ggplot2 by this blog post: http://gforge.se/2013/03/exporting-plain-lattice-or-ggplot/ So I am wondering whether is a by-design limitation or whether this could be improved. I find it very useful to be able to adapt text size to...
2005 Jan 21
2
Windows plots & fontsize
...o me tweaking their windows setup since it might have an effect on other programs. One simple solution is to use par(ps=10), but I cannot find out how to set this globally. a) Does anyone know how I can set par(ps=10) by default on all figure? b) Is there a windows specific way to set default fontsizes in figures? Thanks, Halld?r -- ------------------------------------------ Halldor Bjornsson (halldor at vedur.is) Vedurstofa Islands (Icelandic Met. Office) Bustadavegur 9, IS-150, Reykjavik, Iceland
2009 Feb 10
0
Resize edge's label fontsize
Hi, I'm trying to create a connectivity diagram using RgraphViz library. I want to increase the edge's label fontsize, but the size did not change. Did I do something wrong ? M <- matrix(nrow=5,ncol=5,byrow=TRUE,data=mytable) colnames(M) <- levels(pf$agent) A <- new("graphAM", M, "directed", values = list(weight=M)) eAttrs <- list() ew <- as.character(unlist(edgeWeights(A))) na...
2011 Mar 23
1
Tinc graph and label info.
Hi, I use tinc with the option GraphDumpFile=/etc/tinc/ci00036/grapd.dot In the graph there is the label section: ci00036 [label = "ci00036"]; ci00037 [label = "ci00037"]; ci00038 [label = "ci00038"]; Is there an option to set the label in the tinc config file or host file to a custom text ? Something that is easy to read and has some meaning
2002 Jun 07
2
offset labeling boxplots
Hello everybody, often I plot boxplots with different number of boxes (up to 200 boxes). I'd like to give every box a readable label on the x-axis. Therefore, I decrease the fontsize of the names and plot them vertical. But if you zoom into the plot (pdf) you will find an offset between the tickmark and the label - the label is shifted to the right. If you vary the box.count in the following example (without changing the fontsize) you will find every time this right shifted...
2011 Mar 07
2
Sweave with scan()-ed data
...slide in question in an executable example: \documentclass[dvipsnames,pdflatex,compress,beamer]{beamer} \usepackage{Sweave} \definecolor{Sinput}{rgb}{1,0,0} \definecolor{Scode}{rgb}{0,0,0.56} \definecolor{Soutput}{rgb}{0,0,1} \DefineVerbatimEnvironment{Sinput}{Verbatim}{formatcom={\color{Sinput}},fontsize=\footnotesize,baselinestretch=0.9} \DefineVerbatimEnvironment{Soutput}{Verbatim}{formatcom={\color{Soutput}},fontsize=\footnotesize,baselinestretch=0.85} \DefineVerbatimEnvironment{Scode}{Verbatim}{formatcom={\color{Scode}},fontsize=\small} \begin{document} \SweaveOpts{engine=R,height=6,width=6,r...
2006 Nov 27
2
[R-sig-Geo] plot() and Jpeg() increase font size and resolution
...u wrote: > > Dear list, > > I am having troubles increasing the fontize when plotting a > variogram{gstat} and its model (vgm) with plot and using jpeg(). Also > the resolution in the jpeg call does not work. I am using R2.4 on > Mandriva 10.2 linux. > > I can change fontsize with cex.axis in a normal plot, so I presume it > has to do with plotting the variogram model. Any help on how to > increase the font size and resolution would be appreciated? > > R-calls: > v1<-variogram(log(z)~x+y, loc=coordinates(shp1),data=shp1) > m1<-vgm(0.0175, &quo...
2017 Sep 18
2
pheatmap: incomplete figure
Dear R Community, I tried to generate heatmap for a matrix of 1500 columns by 106 rows using the following R script: > pheatmap(tf.vs.DE.1.removeAllZeroCol, fontsize=3,border_color=NA) and got the graph (as attached Fig 1) Since the column labels appear very crowded, I tried to increase the cellwidth to stretch the graph horizontally. The idea was to show the graph section by section, but with clear/readable column labels (not overlapped labels). So I typed: &...
2007 Jul 24
1
How to add circular text for a graph with concentric circles
...x=0.5, y=0.5, r=3*(0.045906), default.units="npc", name=NULL, gp=gpar(fill="navy",col=NULL), draw=TRUE, vp=NULL) # Now to add the labels ? used trial and error for x and y values grid.text("Provincia Interior", x=0.5, y=0.85, gp=gpar(fontsize=6, col="black")) grid.text("Conurbano 4", x=0.5, y=0.75, gp=gpar(fontsize=6, col="black")) grid.text("Conurbano 3", x=0.5, y=0.71, gp=gpar(fontsize=6, col="black")) grid.text("Conurbano 2", x=0.5, y=0...
2020 May 14
2
rmd y pdf
Estimados quisiera tener el script para al hacer un pdf desde rmarkdown poder modificarle el tamano y tipo de fuente saludos José -- Dr. Jose A. Betancourt Bethencourt Universidad de Ciencias Medicas Carlos j. Finlay
2008 Jun 06
1
boxplot changes fontsize of labels
Hi all! So far I learned some R but finilizing my plots so they look publishable seems not to be possible. I set up some boxplots. Everything works well but when I put more then two of them in one plot the labels of the axes appear smaller than the normal font size. > x <- rnorm(30) > y <- rnorm(30) > par(mfrow=c(1,4)) > boxplot(x,y, names=c("horray",
2001 Nov 27
1
What name-value pairs can be used in gpar()?
To use grid graphics with lattice, the help for gpar indicates that any number of named arguments can be specified but where do we find what names make any sense? I have ascertained that fontsize is given in points such as one would use in a postscript device argument and uses that same name. It's not as I'd have thought, something corresponding to cex in regular par() settings. Evidently there is a good reason for that, but what I'd like to know is how do I set the font to ita...
2003 Apr 27
2
bug and proposed fix in print.trellis 1.7.0 (PR#2859)
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---1678264062-154654637-1051422990=:2626055 Content-Type: TEXT/PLAIN; charset=US-ASCII ---1678264062-154654637-1051422990=:2626055 Content-Type: TEXT/PLAIN; charset=US-ASCII;