Displaying 20 results from an estimated 28 matches for "xlefts".
Did you mean:
xleft
2005 Aug 02
1
multiple scale
Hi all
i need to put on one graph 2 functions who's x axis is the same and y not.
I mean on horizontal the time, and on vertical left: pressure, on vertical right: rpm of a motor, is R able to do that?
i've found this that i could adapt maybe (i don't need time series really?) :/ :
(http://tolstoy.newcastle.edu.au/R/help/04/03/1456.html)
##
## Description: A simple function which
2004 Mar 24
0
High/low level: Plot 2 time series with different axis (left and ri ght)
Sun, 14 Mar 2004, Jan Verbesselt wrote:
> Dear R specialists,
>
> I have two time series in a data.frame and want to plot them in the same
> plot(), with the left axis scaled to time series 1 (-700,0) and the
> right axis scaled to time series 2 (-0.2, 0.4).
>
> plot(timeserie1)
> lines(timeserie2, col=c(2)) => this one should be scaled differently
> with a new
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 Jun 12
0
distribution graph
The following gives two functions for producing distribution graphs:
distribution-graph
produces a single graph, and
multiple.distribution.graph
produces a number of graphs side by side.
Regards,
Tore Wentzel-Larsen
statistician
Centre for Clinical research
Armauer Hansen house
Haukeland University Hospital
N-5021 Bergen
tlf +47 55 97 55 39 (a)
faks +47 55 97 60 88 (a)
email
2006 Feb 21
2
indexing within panels in xyplot
Dear R-helpers,
I need to show a linear fit through a subset of the data within each
combination of levels of two factors. So I prepared an xyplot with
different panels for each level of one of the factors, and different
symbols within each panel for the levels of the second factor. My problem
is selecting the subset of each combination through which the line should
be fit for subsequent
2008 Jul 20
3
asp and ylim
#See David Williams' book "Weighing the odds", p286
y <- c(1.21, 0.51, 0.14, 1.62, -0.8,
0.72, -1.71, 0.84, 0.02, -0.12)
ybar <- mean(y)
ylength <- length(y)
ybarv <- rep(ybar, ylength)
x <- 1:ylength
plot(x,y,asp=1,xlab="position",ylab="ybar",type="n",ylim=c(-1,1))
segments(x[1], ybar, x[ylength], ybar)
segments(x,ybarv,x,y)
2007 May 11
1
conditional across frames of a data fram
I'm a newbie, so please forgive me:
I have a data frame that includes two long columns of x and y coordinate
values thusly:
... ... ... x y ... ...
... ... ... 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
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
2008 Mar 18
1
Error when producing multiple graphes
Dear all,
Within a larger script I use the following code to produce barplots for
all variables contained in a dataframe "type3m":
for(xn in names(type3m)) barplot(table(type3m[[xn]]), main = paste
("Barplot of", xn), width=0.75,legend.text=barnamesm,
xlim=c(0,4),ylim=c(0,400))
The plots are produced and printed into a *.ps file. However, R gives an
error
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.
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
2006 Nov 13
1
bug in lrect [lattice]?
In lattice version 0.14-11 (2006/10/23), there appears
to be a small bug in lrect [lattice]: border is set to NULL
accidentally. It is 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 <-
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]]
2007 Mar 02
1
barplot with different color combination for each bar
Hi,
I'd like to construct a somewhat unusual barplot. In "barplot" I use
beside=F as I'd like to have stacked bars. The height of each bar is
always the same. Information in my plot is coded in the color of the
bar. I therefore need to be able so assign a different combination
(or order) of colors to each individual stacked bar.
In the example below, the combination of
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]]
2010 Sep 10
1
modifying axis labels in lattice panels
Dear all,
I am struggling to modify the axis labels/ticks in a panel provided to
xyplot.
To begin with, I do not know the equivalent of the xaxt="n" directive for
panels that would set the stage for no default x axis being drawn.
My goal is to draw ticks and custom formatted labels at certain hours of the
week.
When I execute the code below, I get an error message in the plot window
that
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.