Displaying 20 results from an estimated 6000 matches similar to: "Centering multi-line strip text in lattice"
2009 Aug 07
1
lattice dotplot: line height for multi-line labels
Dear R-users,
I am looking for suggestions on how to control the line-height for
multi-line labels in lattice dotplot.
In particular, in the dotplot produced by
library(lattice)
aa <- c('A'=10,'B\nb'=20,'C'=30)
dotplot(aa)
I would like to control the vertical separation between 'B' and 'b' in
the second label on the y-axis.
For multi-line axes
2007 Oct 31
1
Lattice: par.ylab.text alpha ?
Hi all,
I've got R for windows 2.3.1
I'm trying to modify my lattice histograms.
The following does reset the y-label to blue, but I cannot turn off the label (alpha=0), nor shift label position (I'm assuming that is what lineheight is for). Is 'lineheight' the equivalent of 'line' in mtext?
Am I erring somehow?
Thanks!
2011 Nov 17
1
Introducing \n's so that par.strip.text can produce multiline strips in lattice
Dear all,
I have the following data, which has \\n in place of \n. I introduced \n's
in the csv file so that I could use it in barchart in lattice. When I did
that and read it into R using read.csv, it read it as \\n. My question is
how do I introduce "\n" in the middle of a long string of quoted text so
that lattice can make multiline strips. Hitting Enter which is supposed to
2009 Aug 25
2
allowing line wrap for long strip text in xyplot (lattice)
Hi. Am brand new to R and to mailing lists - have never posted anywhere
before, so hope I do this right.
Am using R 2.9.1 with lattice graphics (just installed, fully up to date).
Am doing trellis xyplot with y (emp=employment), x (yearmo=a time measure)
and conditioning variable (indf - factor describing industry) -- i.e., (emp
~ yearmo | indf), where all three variables are in a dataframe. The
2012 Jan 31
1
R help, labeling the tick marks as I want
R help,
I would like to change the labels of my tick marks on the x-axis, and I am
having difficulty understanding how. Basically, my current axis labels
are: 0, 50, 100, 150, 200, and I would like: 1962Q1, 1974Q2, 186Q4, 1999Q2,
2011Q4.
With all respect to generality, could you please simply tell me the code to
achieve this in the context of this problem? I learn programming by
example and
2009 Apr 07
1
change inter-line spacing in grid graphics - how to?
I am trying to change the inter-line spacing in grid.text(), but I just
don't find how to do it.
pushViewport(viewport())
grid.text("The inter-line spacing\n is too big")
popViewport()
Can anyone help?
TIA, Mark
2016 Apr 09
1
Run script R
hi all ,?
i have an problem in script R . But when I execute the script R I face this error . can you help me please ???error:-----------------------------------------
Error in FUN(X[[i]], ...) :?? Theme element 'text' has NULL property: margin, debugIn addition: Warning messages:1: Removed 361 rows containing non-finite values (stat_smooth).?2: Removed 361 rows containing missing values
2001 Sep 21
2
new versions of grid and lattice
Hi
There are new versions of the grid and lattice packages on CRAN:
grid 0.2 and lattice 0.3-0
These packages are still _under development_ (they are in
CRAN/src/contrib/Devel)
There have been some bug fixes and, especially in lattice, there are lots of
new features.
Descriptions of the changes are included below.
If you have any grid code, it may break under the new version because of a
2001 Sep 21
2
new versions of grid and lattice
Hi
There are new versions of the grid and lattice packages on CRAN:
grid 0.2 and lattice 0.3-0
These packages are still _under development_ (they are in
CRAN/src/contrib/Devel)
There have been some bug fixes and, especially in lattice, there are lots of
new features.
Descriptions of the changes are included below.
If you have any grid code, it may break under the new version because of a
2008 Sep 25
1
grid.newpage()
Hi,
I'm trying to customize a window with 2 graphs.
I'm able to do the first one with something like this general example
par(mfrow=c(1,2),cex.axis=0.85,cex.lab=0.80,mai=c(1.3,1,0.5,0),las=3)
bplot<-barplot(bar.values,names.arg=cf.names,width=0.5,ylab="% Area held")
abline(h=0.3,lty=3,col="red")
abline(h=0.1,lty=3,col="blue")
2008 Feb 13
1
changing scroll bar behavior
I need to change the behavior of the scrollbar when the user presses
up/down arrows on the scroll bar. Specifically, I''d like to be able to
set the number of pixels that scrollTop changes by when this happens.
I have a div with no content that I set a height equal to the number
of discrete positions I need to scroll through. I then tried to set
lineHeight and fontSize to 1 and 1px
2009 Jun 28
1
HLM - centering level 2 predictor
Dear R-helpers,
I'm analyzing a data with hierarchical linear model. I have one level 1 predictor and one level 2 predictor, which looks like below:
fm1 <- lmer(y ~ 1 + x1 + x2 + x1:x2 + (1 + x1 | id.full))
where:
y is the outcome variable.
x1 is the level 1 predictor variable.
x2 is the level 2 predictor variable.
id.full is the conditioned variable.
It runs beautifully when only x1
2018 Sep 14
2
Poor documentation for "adj" and text()
Hello Core Team,
I sent this patch over a year ago. It looks like it was sent in
response to another user's complaint which echoed some of my own
observations about problems in the documentation for 'text'. Did
anyone have a chance to look it over? I'd like to get it out of my
queue.
Thanks,
Frederick
On Tue, Apr 11, 2017 at 12:01:05PM -0700, frederik at ofb.net wrote:
>
2018 Sep 14
0
Poor documentation for "adj" and text()
>>>>>
>>>>> on Thu, 13 Sep 2018 23:33:41 -0700 writes:
> Hello Core Team, I sent this patch over a year ago. It
> looks like it was sent in response to another user's
> complaint which echoed some of my own observations about
> problems in the documentation for 'text'. Did anyone have
> a chance to look it over?
2008 Aug 06
1
grid layout scaling viewport width based solely on height
Hello all,
I'm trying to write a function that produces a main plotting region
with several square plots along the right side. Ideally the size of
right side plots will scale only with the height of the entire plot,
yet never overlap with another secondary plot. The following two
snippets get close, however, as I resize the plot horizontally the
right side plots (green squares) get smaller
2009 Apr 26
7
Bumps chart in R
Hi there,
I would like to make a 'bumps chart' like the ones described e.g.
here: http://junkcharts.typepad.com/junk_charts/bumps_chart/
Purpose: I'd like to plot the proportion of people in select countries
living for less then one USD pr day in 1994 and 2004 respectively. I
have already constructed a barplot - but I think a bumps chart would
be better
# The barplot and data
2009 Dec 20
1
How to put text outside an xyplot?
Dear R-users,
I have a plot created with the code below. I tried to put some text to the right of the color key. I worked with grid.text and also viewport(), but couldn't achieve this. I know this should be simple, but I just couldn't figure out how to do it. How does this work?
Cheers,
Marius
library(lattice)
library(grid)
myvec=1:10
data=data.frame(x=myvec,y=myvec)
2017 Apr 11
2
Poor documentation for "adj" and text()
Hi!
(I'd like to be able to access your bugzilla, BTW)
The documentation for parameter "adj" of text() in R 3.3.3 is hard to understand (unless you know what it does already):
"adj
one or two values in [0, 1] which specify the x (and optionally y) adjustment of the labels. On most devices values outside that interval will also work."
What is the meaning of the values? I
2014 Oct 23
2
[Bug 85352] New: [NVC0/Gallium] Scaling/centering issue in shadertoy shader
https://bugs.freedesktop.org/show_bug.cgi?id=85352
Bug ID: 85352
Summary: [NVC0/Gallium] Scaling/centering issue in shadertoy
shader
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
2010 Apr 26
1
Sweave: centering with echo=TRUE
In a .Rnw file I want to insert the R command
pairs(mydataframe)
and achieve the following effects
1. the command itseld is echoed into the tex document generated by Sweave
<<fig=TRUE,echo=TRUE>>=
2. The graphics generated appears in the tex document, with the graphics
centred.
3. The R command > pairs(mydataframe) is not centered.
Sweave-manual.pdf gives the following code chunk