Displaying 20 results from an estimated 25 matches for "ytop".
Did you mean:
stop
2005 Oct 23
1
Coloring leaves, twigs and labels in plot.dendrogram()
...acters Wide
##############################
plotNode <- function (x1, x2, subtree, type, center, leaflab, dLeaf,
nodePar,
edgePar, horiz = FALSE, leafcounter = leafcounter, ...)
{
#cat('.') uncomment this for debugging...
inner <- !is.leaf(subtree) && x1 != x2
yTop <- attr(subtree, "height")
bx <- plotNodeLimit(x1, x2, subtree, center)
xTop <- bx$x
hasP <- !is.null(nPar <- attr(subtree, "nodePar"))
if (!hasP)
nPar <- nodePar
if (getOption("verbose")) {
cat(if (inner)...
2003 Nov 12
3
(no subject)
Hi all,
I am looking for a clever way to create the following graph using R:
I got information on the shares of some subgroups over time (summing up to 1 in each year). The graph I want to create should display the development of the individual shares over time by shading rectangulars for each share in a different color.
Is there a clever of doing this?
Thanks for your help
Stefan
2007 May 11
1
conditional across frames of a data fram
...... 115 127 ... ...
... ... ... 120 129 ... ...
... ... ... 0 0 ... ...
... ... ... 135 162 .... ...
ect...
i need to ask R tell me how many x-y pairs contain coords that are
non-zero and fall within values that i'm callilng xleft, xright, ybottom and
ytop and fall between certain indicies of the data frame.
i am calling the indexes by referring to numbers i have storied in other
variables. i am really looking for an efficient way to do this since when i
try to pull the x and y columns out and assign them to their own variables,
the process of askin...
2008 Feb 27
2
Add a rectangle behind a plot
Hi there,
I found one reference to add a reactangle behind a
plot using plot(...,add=T), I tried this but didn't
obtain the desired result.
If a I have the following code:
plot(x,y)
rect(xleft, ybottom, xright,ytop,col='green)
The rectangle appear on top of the plot.
Any help will be greatly appreciated,
Judith
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
2008 Jul 24
1
plot.dendrogram xlim/ylim
...ackage allows zooming by passing xlim and ylim
arguments to the plot call (Hmisc does this too I think). But
currently stats:::plot.dendrogram does not accept xlim or ylim. So I
would like to enable that. In place of the existing code chunk:
xlim <- c(x1 - 1/2, x2 + 1/2)
ylim <- c(0, yTop)
if (horiz) {
xl <- xlim
xlim <- rev(ylim)
ylim <- xl
tmp <- xaxt
xaxt <- yaxt
yaxt <- tmp
}
plot(0, xlim = xlim, ylim = ylim, ......
I propose something like:
function(..., xlim, ylim)
xlim0 <- c(x1 - 1/2, x2 +...
2003 Feb 24
2
fill prob. in legend
Hi,
I'm trying to construct a legend which has four lines of text and associated
symbols. The first two symbols need to be normal lines which vary only in
colour. The second two symbols should have filled boxes. How do I suppress
the fill boxes in the first two lines?
J.
2012 Jul 17
2
Table/Frame - output
I would like to output a nicely formatted data frame to a bitmap.
Is this possible in R?
--
View this message in context: http://r.789695.n4.nabble.com/Table-Frame-output-tp4636790.html
Sent from the R help mailing list archive at Nabble.com.
2006 Nov 13
1
bug in lrect [lattice]?
...s easily fixed by adding one line
to lrect -- see example and hack below ...
I wasn't sure if this should be submitted as an R bug
since it is part of a package, but a core/recommended package ...
Ben Bolker
x = runif(100)
y = runif(100)
my.lrect <- function (xleft, ybottom, xright, ytop, x = (xleft + xright)/2,
y = (ybottom + ytop)/2, width = xright - xleft, height = ytop -
ybottom, col = "transparent", border = "black", lty = 1,
lwd = 1, alpha = 1, just = "center", hjust = NULL, vjust = NULL,
...)
{
if (missing(border)) ## this...
2013 Feb 28
1
put strip below the panel (dotplot)
Hello
I am using lattice dotplot and I would like to put the strip under the
panel.
I found the code “strip” is for the strip above the panel, and “strip.left”
for the strip left to the panel.
Please kindly advise how to write the code for the strip under the panel
Thank you
Elaine
[[alternative HTML version deleted]]
2011 Dec 14
2
plot matrix of characters
Hi, I am looking for options to plot the following type of matrices:
"A" "B" "C" "D"
"A" "A" "C" "C"
"A" "A" "A" "C"
as a image like this: http://www.phaget4.org/R/image002.jpg
2024 Jun 06
1
What is the HEX code for "transparent" color?
On 2024-06-06 4:37 a.m., Yosu Yurramendi wrote:
> What is the HEX code for "transparent" color?
> I've tried "00000000" "FFFFFF00" "FFFFFFFF", but they don't work.
If the other answers don't solve your problem, you should give us some
context. Not all graphics functions in R can handle transparency, so
please show us some reproducible
2008 Feb 01
1
display pictures
Dear all,
is there a possibility to display pictures (jpegs, pngs, ...) in R?
Maybe the following (hypothetical) code makes it clearer what I have in
mind:
plot(x=0:100, y=0:100, type="n")
rect(xleft=25, xright=75, ybottom=30, ytop=95, fill="apicture.png")
Thank you,
Roland
[[alternative HTML version deleted]]
2008 Feb 21
2
coloring a graph left or right of an abline
Dear R community,
I would wish to color the background of my histogram differently to the
left and right of an abline... Can you please help?
Thankin you,
Georg.
****************************
Georg Ehret
JHU
Baltimore - USA
[[alternative HTML version deleted]]
2005 Oct 24
1
Basic: setting resolution and size of an R graphic
...mean,x.se,y.mean,y.se,z.mean,z.se,xy.pval,xz.pval) {
makeBars(A,x.mean,x.se)
makeBars(B,y.mean,y.se)
makeBars(C,z.mean,z.se)
writeP(B - 0.05, y.mean,y.se,xy.pval)
writeP(C -0.05,z.mean,z.se,xz.pval)
}
## We will make a two part graphic
par(mfrow=c(1,2))
## X: 0
## y: 0.2 ??M
## z: 0.4 ??M
yTop <- 12 ## Limit for Y axis
## --- RT-PCR MMP1 --- ##
x <- c(0.8839034,0.42011158,0.65318013 , 0.88494528,1.900606, 1.2572536 )
x.mean <- mean(x)
x.se <- sd(x) / sqrt(length(x))
y <- c(5.067579666,2.630677502,1.881902881,1.61994864,3.356066695 )
y.mean <- mean(y)
y.se <- s...
2010 Sep 10
1
modifying axis labels in lattice panels
...quot;, ...);
panel.grid(0,3);
panel.abline(v= Hours24-4*3600, lty=2, col = rgb(0,0,1,0.5));
panel.abline(v=Hours24+6*3600, lty=2, col = rgb(0,1,0,0.5));
bb <- par('usr')
y0 <- bb[3];
for (i in seq(r[1], r[2], by=48*3600)) panel.rect(xleft=i, ybottom=y0,
xright=i+24*3600-1, ytop=bb[4], col = rgb(0.75,0.75,0.75,0.3), border = NA);
panel.axis(1, at= Hours24-4*3600,
labels=as.character(format(Hours24-4*3600,"%H")));
#panel.axis(1, at= Hours24+6*3600, labels=format(x,"%H"));
#panel.axis(3, at= Hours24, labels=format(x,"%a"), line = -1, tick...
2009 Jun 14
1
color in pairs
Dear list
Is there any way that I can color the background (not the plotted points) of
each box in "pairs" ?
I'd like to color them according to the correlation coefficiency of
each data pair.
thanks.
N
2005 Apr 14
2
Display execution in a function
Dear all,
Here is a simplified version of a function I made:
############
plotfunc<-function(x){
#x a vector
cat("please select two points","\n")
plot(x)
points<-locator(2)
return(points)
}
############
Using R version 1.01 for mac os x (aqua GUI)
I would like to know what should I do to make
sure that my text line will be printed prior to
the drawing of the plot.
2010 Mar 24
1
shading an area of a graphic
Colleagues
OS 10.5
R: 2.10.1
I have a simple x-y plot for which I would like to shade the lower (or upper) part of the interior region (i.e., the area bounded by the axes). If the delineation between top and bottom were linear, it would be use to use the polygon function. However, the delineation is a curve (which I can describe by an equation). In theory, I could divide the x-axis into a
2008 Aug 02
3
Bubble plots
Is there a way to create a 'bubble plot' in R?
For example, if we define the following data frame containing the level of y observed for 5 patients at three time points:
time<-c(rep('time 1',5),rep('time 2',5),rep('time 3',5))
2005 Dec 13
4
Ploting graphics using X tints from a color
Hi,
I'm trying to draw a 2D plot using multiple tints of red. The
(simplified) setup is the following: || year | x | y ||
My idea is that each year is plotted with a different tint of red.
Older year (lightest) -> Later year (darkest). I've managed to plot
this with different scales of grays simply by doing:
palette(gray(length(years):0/length(years)))
before the plot and for each