Displaying 20 results from an estimated 76 matches for "yaxi".
Did you mean:
yagi
2006 Jul 07
4
How to change the type of segments ends?
...lend'
arguments, but cannot make it. I even tried 'arrows()', but still
failed. Following is the code I use:
====================================================
drug.or <- c(1.017,1.437,1.427,2.211)
drug.orl <- c(0.715,1.075,1.103,1.696)
drug.oru <- c(1.446,1.922,1.845,2.882)
yaxis <- seq(1,4,by=1)
plot(x=drug.or,y=yaxis,type='p',pch=17,xlim=c(0,3),axes=FALSE,
xlab='Odds Ratio',ylab='',main='Reference Group: A only')
axis(1,at=seq(0,3,by=0.5),labels=paste(seq(0,3,by=0.5)))
axis(2,at=yaxis,las=2)
segments(x0=drug.orl,x1=drug.oru,y0=y...
2012 Mar 10
2
Window on a vector
Dear all,
I have a large vector (lets call it myVector) and I want to plot its value with the logic below
yaxis<-myVector[1]
yaxis<-c(xaxis,mean(myvector[2:3])
yaxis<-c(xaxis,mean(myvector[4:8])
yaxis<c(xaxis,mean(myvector[9:16])
yaxis<c(xaxis,mean(myvector[17:32])
this has to stop when the new ..... yaxis<c(xaxis,mean(myvector[1024:2048]) will not find the correspondent number of element...
2006 Sep 16
2
how to rescale the limits of yaxis rather than using the data range by default?
Dear Lister,
plot() is using the data range as the default limits of yaxis. Is
there any way I can change the limits? I just look at the help of
plot() and par() and couldn't find answers.
Thanks.
--
WenSui Liu
(http://spaces.msn.com/statcompute/blog)
Senior Decision Support Analyst
Health Policy and Clinical Effectiveness
Cincinnati Children Hospital Medical Cen...
2007 Oct 11
1
strange: yaxis inversion with zoo not possible?
hej there
I want to invert the yaxis as follows:
x<-rnorm(1:50)
plot(x^2, type="h", ylim=c(0,10))
plot(x^2, type="h", ylim=c(10,0))
then doing the following it won't work - kind of strange isn't it?
x.zoo<-zoo(x^2)
plot(x.zoo, type="h", ylim=c(10,0))
plot(x.zoo, type="h", ylim=...
2003 Apr 27
2
bug and proposed fix in print.trellis 1.7.0 (PR#2859)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---1678264062-154654637-1051422990=:2626055
Content-Type: TEXT/PLAIN; charset=US-ASCII
---1678264062-154654637-1051422990=:2626055
Content-Type: TEXT/PLAIN; charset=US-ASCII;
2009 Nov 06
2
Adjusting Yaxis (ylim) limits on a plotMeans(DV, IV1, IV2, error.bars="se")
...t unfortunately nothing works with "plotMeans" function, which is
the only one I see so fat to plot what I need. Could anyone provide any
suggestions or advice?
Thank you.
Sergey (UNL, Behavioral Psychopharmacology Lab)
--
View this message in context: http://old.nabble.com/Adjusting-Yaxis-%28ylim%29-limits-on-a-plotMeans%28DV%2C-IV1%2C-IV2%2C-error.bars%3D%22se%22%29-tp26226434p26226434.html
Sent from the R help mailing list archive at Nabble.com.
2005 Sep 28
1
boxplot and xlim confusion?
...tart",
"TSU>, stop",
">TSU, start")
elsustop <- read.table("28s.euk.accuracy.stop.dev")
[skipped lots of read.table, which just reads files with one number on
each line]
par(mfcol=c(1,3))
par(mai = c(0,0,0.5,0.2), omi = c(1,1,1,1))
xaxis = c(-6000,1000)
yaxis = c(0,7)
#plot.new()
#plot.window(xlim=xaxis, ylim=yaxis)
boxplot(alsustop$V1 ,alsustart$V1 ,assustop$V1 ,alsustart$V1 ,atsustop$V1 ,atsustart$V1 ,names=names,col=c("lightblue","orange","lightblue","orange","lightblue","orange") ,horizont...
2010 Sep 22
2
plot.ts versus plot.zoo
plot.ts has an argument yax.flip, plot.zoo does not.
Is there a way to make the yaxis flip in plot.zoo?
I tried using a custom panel function:
panel.yaxis<-function(...) {
npnl<-parent.frame$panel.number
if (npnl %% 2 == 0) {
axis(side=3)
} else {
axis(side=2)
}
}
This leads to a blank window. I am stuck with the intricacies of the
pl...
2006 Jun 27
2
horizontal yaxis label
Dear all,
I wonder how to get an horizontal label for the y axis in the plot function. I have looked at par and many function but didn't find it.
more specifically , let:
df <- data.frame(cbind(1:10, 11:20))
names(df) <- c("y","x")
plot(y ~ x, data = df, ylab = "dependent")
how to ask R to have the label
2010 Apr 14
1
Problems getting symbols() to show table data
...be heading in completely the wrong direction. I can
create a grid of circles with the right number of dimensions:
Read_data=read.table("C:/files/circle_data.txt", head = T)
number_rows = nrow(Read_data)
number_cols = ncol(Read_data)
xaxis = rep(seq(1,ncol(Read_data),1),nrow(Read_data))
yaxis = rep(seq(1,nrow(Read_data),1),ncol(Read_data))
zvalues = rep(0.1,(number_rows*number_cols)) #This is just a dummy vector
symbols(xaxis, yaxis, circles = zvalues, inches = FALSE, xlab="", ylab="")
axis(2, at=c(1:number_rows), rownames(Read_data), las = 1)
axis(1, at=c(1:number_...
2011 Mar 27
2
overlaying
Dear List,
I am working with a small (3 columns and 9 rows) data table, which contains
9 observations, their mean values and standard deviations (I extracted these
data from a huge set and I cannot use the original data). I plotted means
(y-axis) and the observations (x-axis) using the " plot() " command.
However, I am not sure how to plot the standard deviation data on top of
this. This
2009 Jul 21
2
animated grid graphics
...simple example of what I need:
##==============================================================================
library(grid)
grid.newpage()
pushViewport(plotViewport())
pushViewport(viewport(xscale = extendrange(c(0, 100)),
yscale = extendrange(c(0, 100))))
grid.xaxis()
grid.yaxis()
rectNames <- paste("r", 1:100, sep = "")
for (i in 1:100) {
grid.rect(x = unit(sample(0:100, 1), "native"),
y = unit(sample(0:100, 1), "native"),
width = 0.1, height = 0.1, name = rectNames[i])
}
for (i in 1:100) {
grid.rem...
2011 Aug 18
1
Where are the ticks on grid.xaxis?
Hi R list,
I like the default ticks that are set up using grid.xaxis() or grid.yaxis()
with no arguments. Finding good values for the 'at' argument is usually not
a trivial task; the default behavior of these functions seems to work well.
The problem with this strategy is that I cannot figure out how to "recover"
the positions of these ticks when you do NOT spe...
2005 Oct 21
3
Problems with example(Grid) in grid package
The following:
library(grid)
grid.newpage()
example(Grid)
has the yaxis label partly cut off and the x axis label does not appear at all.
Also ?grid.multipanel in that example brings up documentation for
grid-internal but this would not seem to be internal if its part of an example.
I am using:
> R.version.string # Windows XP
[1] "R version 2.2.0, 2005-09-2...
2009 Oct 20
3
Transparent Bands in R
Hello All,
My question is regarding the attached plot. I would like to have multiple
transparent green bands running the length (yaxis) of the plot the width of
which is determined by the green lines at y=0 in the plot. Can you suggest a
way to do it?
For those who can't or are unwilling to download the file the plot is at
http://www.twitpic.com/ma8w0
Thanks!
http://www.nabble.com/file/p25983169/foo.ps foo.ps
--
View this...
2010 Oct 19
3
plot CI and mortality rate
Dear R Users:
I have the individual mortality rate and 95% CI of 100 hospitals,
how to do the plot with the individual hospital in the Yaxis, and the
mortality rate and 95% CI in the Xais and a overall mean as a reference
line?
Thanks and regards,
Xin
[[alternative HTML version deleted]]
2005 Feb 18
4
barplot and ylim - display problems
...'xaxis' is missing, and the grey bars 'fall off' the plot area. This
is generally ugly, and I would like to trim the bars (ideally they would
have a ragged appearance to show that I am 'zooming in').
I can see why what I am trying to do is conceptually a bit tricky, as the
yaxis needs to be closly inspected to see the data in its propper context.
This is simply fixed by showing...
barplot(c(101,102,103))
However, I want to first show the data in its propper context, then 'zoom
in' to highlight the difference between the bars.
I tried covering up the bottom of...
2012 Sep 05
2
cex.lab ignored in plot.zoo for multiple plots
Hello everyone,
a problem with the plot.zoo function. In the parameters of the function,
cex.lab is ignored. I tried to reduce the size of the yaxis labels by at
least 50%.
------------------
Example:
sample <- as.zoo(EuStockMarkets)
par(las=1)
plot.zoo(sample, plot.type="multiple", main="Time Series", xlab="Date",
yaxt="n", cex.lab=0.5, xaxs="i")
# Try playing with different values for...
2010 May 25
1
Lattice: relation = 'free' in scales
...I want to publish. The article is
about several methods (to calculate breeding values of individuals) applied
in several genetic scenarios (scen1 in the example) and using data from two
sources (scen 2 in my example). I want to specify the ylim of my plot and
have relation = 'free' for the yaxis but I would to avoid plotting the axis
for each subplot. I include an example to clarify my problem.
require(lattice)
nmethods <- 3
nscen1 <- 3
nscen2 <- 2
gens <- 1:10
tab <- expand.grid(method = 1:nmethods,
scen1 = 1:nscen1,
scen2 = 1:nscen2,...
2007 Aug 08
1
Help using gPath
...round.rect.345, minor-horizontal.segments.347,
minor-vertical.segments.349, major-horizontal.segments.351,
major-vertical.segments.353)
guide.gTree.356:: (background.rect.345, minor-horizontal.segments.347,
minor-vertical.segments.349, major-horizontal.segments.351,
major-vertical.segments.353)
yaxis.gTree.338::
ticks.segments.321
labels.gTree.335:: (label.text.324, label.text.326, label.text.328,
label.text.330, label.text.332, label.text.334)
xaxis.gTree.339::
ticks.segments.309
labels.gTree.315:: (label.text.312, label.text.314)
xaxis.gTree.340::
ticks.segments.309
lab...