search for: lheight

Displaying 16 results from an estimated 16 matches for "lheight".

Did you mean: height
2011 Dec 01
2
legend, "lheight", and alignment
...sh this? Here's how it appears on my machine: http://r.789695.n4.nabble.com/file/n4129402/example.png 2) Because I'm using a call to 'expression' in the text contained in the legend, it would be nice to space the lines of text a bit more. My feeble attempt was to increase the lheight parameter in the hopes this would affect the legend...to no avail. Further, lheight cannot be added to the argument list of legend. I've been unable to track down another parameter applicable to legend, suggestions very much appreciated. par(lheight=2) plot(1,1,col="white") legend...
2011 Feb 18
2
Line spacing in graphics
Hi all, tried to google but found nothing, so here goes the question: is there a way to control line spacing when displaying text in graphical mode (for example, using text())? As an example, run the following code: plot(c(0,1), c(0,1), type = "n", axes = FALSE, xlab = "", ylab = "") text(0.5, 0.5, "Line 1\nLine 2", cex = 3) Is there a way to control the
2006 Aug 04
2
expression() - Superscript in y-axis, keeping line break in string
...ut as yet to no avail. My y-axis for a plot has a rather long label, and thus I have been using "/n" to break it into two lines. However, to make it technically correct for publication, I also need to use superscript in the label. For example: par(oma=c(0,0,2,0),mar=c(5,6,0.25,2),lheight=1) plot(1:10, ylab="14C-glyphosate line1\n line2") will provide the text in two lines as I would like it. However, I am trying to keep those same line breaks when using expression() to get my superscript number. This will not work, as it aligns the "14C" sectio...
2006 Mar 13
1
[R] dotchart: Gap between text and chart (PR#8681)
...herbergungs und Gaststaettendienstleistungen", > "Andere Waren und Dienstleistungen")) > > dotchart(sort(a)) > dotchart(sort(a),cex=0.7) I've determined that this is a bug in dotchart. It miscalculates the height of a line of text in the right margin, using lheight <- strheight("M", "inch") which doesn't give the right answer. You get the correct answer in this case by putting lheight <- par("mai")[2]/par("mar")[2] but that's not a general solution, as the denominator may be zero. I'll look for...
2005 Jul 06
3
plotting on a reverse log scale
I'd like to do some plots of historical event data on a reverse log scale, started, say at the year 2000 and going backwards in time, with tick marks spaced according to log(2000-year). For example, see: http://euclid.psych.yorku.ca/SCS/Gallery/images/log-timeline.gif As an example, I'd like to create a density plot of such data with the horizontal axis reverse-logged, a
2013 Mar 07
1
what is absolute size of mar
Hi R users, The margin parameter mar is measured in unit of lines, the size of which is automatically adjusted during plotting. I am wondering how can get the size of a line and how can I control the margin size by controlling the line size? (I know I can use mai to control the absolute size of margin, but in some situations that parameter does not exist. For example, heatmap() only accept mar as
2008 Oct 19
1
convert lines to inches
Hi, how can I convert the unit "lines" of par("mar") into inches? par("mai") could help, but does not (see code below). I want to plot a curve in a predefined size in pdf (I add some margin space to the plot width&height, everything is in cm): pdf("test.pdf",width=(20+2+4)/2.54,height=(10+3+1)/2.54) plot(10:30,
2010 Sep 28
1
confirming behavior of "by"
Hi, I'm using "by" to summarize by multiple groups, and want to extract the returned into a pretty dataframe. I'm trying to find a simple way to name the rows of the data frame. I'd like it to be something like index1.val1.index2.val2 where the index1 and index2 are the names of the indices and the val1 & val2 are names of possible values of the index. (the
2011 Dec 20
0
[LLVMdev] specializing hybrid_ls_rr_sort (was: Re: Bottom-Up Scheduling?)
...>setHeightToAtLeast(SU->getHeight() + PredEdge->getLatency()); but the latencies are considered only if the node as an ILP scheduling preference (the default in TargetLowering.h is None): bool LStall = (!checkPref || left->SchedulingPref == Sched::ILP) && BUHasStall(left, LHeight, SPQ); ... and the PPC backend does not override getSchedulingPreference. -Hal > > In addition, the stall computation is done using BUHasStall, and that > function only checks the current cycle. Without looking forward, I don't > understand how it could know how long the pipeli...
2003 Sep 29
5
colours in dotchart (PR#4343)
Problem: neither fg or bg nor color work properly in dotchart. version: R-1.7.1 for windows code which shows the errors: x <- matrix(rnorm(16),ncol=2,dimnames=list(paste("a",1:8,sep=""),c("before","afte r"))) dotchart(x,fg="blue",bg="lightgrey") dotchart(x,color=c("red","blue")) Dr Ian J Wilson Lecturer in
2007 Mar 31
0
X11 and linux and plotting and the vertical axis
...139 $din [1] 6.989727 6.989727 $err [1] 0 $family [1] "" $fg [1] "black" $fig [1] 0 1 0 1 $fin [1] 6.989727 6.989727 $font [1] 1 $font.axis [1] 1 $font.lab [1] 1 $font.main [1] 2 $font.sub [1] 1 $gamma [1] 1 $lab [1] 5 5 7 $las [1] 0 $lend [1] "round" $lheight [1] 1 $ljoin [1] "round" $lmitre [1] 10 $lty [1] "solid" $lwd [1] 1 $mai [1] 1.000015 0.803934 0.803934 0.411771 $mar [1] 5.1 4.1 4.1 2.1 $mex [1] 1 $mfcol [1] 1 1 $mfg [1] 1 1 1 1 $mfrow [1] 1 1 $mgp [1] 3 1 0 $mkh [1] 0.001 $new [1] FALSE $oma [1] 0 0 0 0 $omd...
2011 Dec 20
1
[LLVMdev] specializing hybrid_ls_rr_sort (was: Re: Bottom-Up Scheduling?)
...SU->getHeight() + PredEdge->getLatency()); > > but the latencies are considered only if the node as an ILP scheduling > preference (the default in TargetLowering.h is None): > bool LStall = (!checkPref || left->SchedulingPref == Sched::ILP) && > BUHasStall(left, LHeight, SPQ); > ... > > and the PPC backend does not override getSchedulingPreference. > Right, even with sched=hybrid, the scheduler will fall back to register pressure scheduling unless the target implements TargetLowering::getSchedulingPreference. I forgot that piece of the puzzle. You...
2011 Dec 20
2
[LLVMdev] specializing hybrid_ls_rr_sort (was: Re: Bottom-Up Scheduling?)
On Mon, 2011-12-19 at 23:20 -0800, Andrew Trick wrote: > > On Dec 19, 2011, at 10:53 PM, Hal Finkel wrote: > > > Here's my "thought experiment" (from PR11589): I have a bunch of > > load-fadd-store chains to schedule. A store takes two cycles to > > clear > > its last pipeline stage. The fadd takes longer to compute its result > > (say 5
2008 Jun 30
2
Plotting question: Problem with strwidth in 2.7.1
R users, I have a problem with function strwidth in 2.7.1. I'm trying to set the plot margins in a way that horizontal column labels will fit to the graph. tmp.t is a list of data.frame objects. This code works well in 2.6.0. ...snip.. library(gplots) for (i in names(tmp.t)) { bmp(filename=paste(i, "_", Sys.Date(), ".bmp", sep=""), width=1038,
2004 Oct 04
7
R 2.0.0 is released
...PDF, X11, Quartz, and Windows respond to this setting. 'lend', 'ljoin', and 'lmitre' control the cap style and join style for drawing lines (only noticeable on thick lines or borders). Currently, only PostScript, PDF, X11, and Quartz respond to these settings. 'lheight' is a multiplier used in determining the vertical spacing of multi-line text. All of these settings are currently only available via par() (i.e., not in-line as arguments to plot(), lines(), ...) o PCRE (as used by grep etc) has been updated to version 5.0. o A 'version' a...
2004 Oct 04
7
R 2.0.0 is released
...PDF, X11, Quartz, and Windows respond to this setting. 'lend', 'ljoin', and 'lmitre' control the cap style and join style for drawing lines (only noticeable on thick lines or borders). Currently, only PostScript, PDF, X11, and Quartz respond to these settings. 'lheight' is a multiplier used in determining the vertical spacing of multi-line text. All of these settings are currently only available via par() (i.e., not in-line as arguments to plot(), lines(), ...) o PCRE (as used by grep etc) has been updated to version 5.0. o A 'version' a...