Displaying 12 results from an estimated 12 matches for "doubleyscale".
2013 Sep 19
3
lattice: double y - problem changing axis color after doubleYScale
Hi,
I have had some troubles using doubleYScale. No matter what I try, I cant manage to change the color of the y-axis in the end. I have to produce a black and white plot. There is also something I do not understand regarding fontfamilyj="serif" when using it in:
strip=strip.custom()
Maybe someone has a better idea for defining which...
2011 Apr 13
2
FW: how to enclose two xyplot
Dear R-users,
I have to plot two xyplot, and I wish to enclose this two graphs with just one headline, the same x scale, the same grid etc.
These parameters should tie in, in order to obtain, visually, a unique graph formed by two xyplot.
I try to give an idea:
xyplot1: |_|_|_|
xyplot2: |_|_|_|
what i want: | | | |
|_|_|_|
I tried to use the command
2012 Apr 23
2
automating a script to read a file
Hi,
The following script (which I did not develop) is used to calculate and
plot a skewed normal curve. The script currently requires the user to
input six parameters, rather than reading these directly from a file.
I've been spinning wheels here, trying to figure out how to modify the
script to automate it. I have four data sets, each in excess of 300
records that I need to process.
My
2012 Mar 16
3
Y-axis label on the right hand side in lattice?
Hello,
Is there a way to add ylab on the right hand side also (in lattice)?
Different from the left hand side?
Cheers
Saptarshi
[[alternative HTML version deleted]]
2010 Apr 19
2
Overlay of barchart and xyplot
Hello R Folks,
I am new to R. I have been struggling to overlay a barchart with a
xyplot together on one plot but did not get this worked out. Any help
and idea are greatly appreciated.
I attached R scripts for barchart and xyplot below and also data I used.
What I am trying to do is just to put the barchart and xyplot together
on one plot.
Huapeng
<<dispersal_infestation.csv>>
2009 Jan 15
1
misalignment of x-axis when overlaying two plots using latticeExtra
Dear R-helpers:
I am an entry-level R user and have a question related to overlaying a
barchart and and a xyplot using latticeExtra.
My problem is that when I overlay them I fail to align their x-axes.
I show my problem below through an example.
#the example data frame is provided below
vec <-c(1,5.056656,0.5977967,0.06126587,0.08557778,
2,4.601049,0.5995989,0.05002188,0.11410027,
2010 Dec 09
4
[lattice xyplot] Help needed in help in customizing the panel.abline() function
...panel = function(...) {
panel.abline(v = 8, lty = 2)
panel.xyplot(...)
})
sales <- xyplot(pct_inv_left ~ week_num|sku_num, data=swtop16,type =
"l",lwd=2,panel = function(...) {
panel.abline(h = 75, lty = 2)
panel.xyplot(...)
})
doubleYScale(disc, sales, style1 = 0, style2 = 2, add.ylab2 = TRUE,text =
c("# stores with gt 50pct disc", "% Unsold"))
--
View this message in context: http://r.789695.n4.nabble.com/lattice-xyplot-Help-needed-in-help-in-customizing-the-panel-abline-function-tp3079656p3079656.html
Sent from...
2011 Jan 28
4
Diferente escala en los ejes de un barchart
Buenos dias a todos.
Tengo este Barchart con dos tipos de datos. Desembarcado y Muestreado. Como los datos de Desembarcado son mucho mayores que los de Muestreado, estos ultimos datos apenas si se aprecian en la grafica. Lo que se me ocurre es cambiar la escala de este eje. ¿alguien sabria como hacerlo? O alguna otra sugerencia claro.
Muchisimas gracias a todos los que me estan ayudando
Jose Luis
2014 Jul 28
0
lattice, latticeExtra: Adding moving averages to double y plot
...t;) ## what is this "pch" defining? Types?
#I would like to have different symbols and line types for stuff2 and stuff3
panel.lmline(x,y,col = "black", data=madfStuff2_3) # wrong! Need my moving averages here!
})
myplot2
doubleYScale(myplot1, myplot2, style1 = 0, style2=0, add.ylab2 = TRUE,
text = c("stuff1", "stuff2", "stuff3"), columns = 2, col="black")
# problem here is that I end up with two lines. I need a double y-plot with one moving average plots that are read off y-...
2009 Aug 18
1
second y-axis in lattice xyplot
Dear R-help,
I recently discovered lattice xyplot, but have been struggling with plotting a second y-axis. I am able to do this with plot() but can't figure it out in xyplot. Any help would be appreciated.
I have found help on adding a second Y-axis when the data is all part of the same data frame, but I have two different data frames.
Both data sets are being plotted against "Date".
2011 Jan 10
3
Lattice, combine histogram and line graph
Hello everyone,
I have a simple histogram of gasoline prices going back a few years that
I want to insert a line graph of consumer price index (cpi) over the
histogram. I have looked through the "Lattice" book by Deepayan Sarkar
but don't see anything there. How might this be done? An example would
be wonderful.
Current code snippet follows. For example additional field to add
2010 Dec 11
0
is there a packge or code to generate markov chains in R
...panel.abline(v = 8, lty = 2)
> ? ? ? ? ? panel.xyplot(...)
> ? ? ? })
> sales <- xyplot(pct_inv_left ?~ week_num|sku_num, data=swtop16,type =
> "l",lwd=2,panel = function(...) {
> ? ? ? ? ? panel.abline(h = 75, lty = 2)
> ? ? ? ? ? panel.xyplot(...)
> ? ? ? })
> doubleYScale(disc, sales, style1 = 0, style2 = 2, add.ylab2 = TRUE,text =
> c("# stores with gt 50pct disc", "% Unsold"))
> --
> View this message in context: http://r.789695.n4.nabble.com/lattice-xyplot-Help-needed-in-help-in-customizing-the-panel-abline-function-tp3079656p3079656....