similar to: Basic doubt on ylim

Displaying 20 results from an estimated 300 matches similar to: "Basic doubt on ylim"

2003 Feb 03
1
Problems with table
Hi, I'm having difficulties in the manipulation of the function table. Necessary to have access its elements and I am not obtaining. For example, if I have a data.frame with name "df" and make: t < - data.frame(table(df)) and later trying to make a comparison of the type t[1,1 ] < 0.1, generates an error of the type: [1] NA Warning message: "<" not meaningful for
2003 Feb 04
1
Background color of plot
I'm using the parameters "mfrow" and "mfg" to display some graphics(plots) at the same time. Although, because of the parameter "mfg", the parameter "bg" donĀ“t change the background color. What can I do to solve this? Here is the code I'm using... ... i <- 1 for(j in 1:4){ for(k in 1:2){ limiares <-
2010 Feb 14
2
lattice/ylim: how to fix ylim[1], but have ylim[2] dynamically calculated?
Hello, When drawing "barcharts", I find it not helpful if ylim[1] != 0 - bars for a quantity of 0, that do not show a length of 0 are quite non-intuitive. I have tried to study > library(lattice) > panel.barchart but am unable to figure out where ylim is taken care of and how one might fix ylim[1] to 0 for barcharts ... Can anyone point out how to tackle this? Thanks, Joh
2010 Nov 30
1
Zooming in to a ggplot (a sort of ylim, but ylim won't do)
Dear Helpers, I wonder whether you might be able to help me. I have a plot composed of ggplot (and a follow on geom_smooth call). I would like to restrict the display range of the y axis to a smaller range, a sort of zooming onto a region. I attempted to use ylim, but it will effect the range (i.e. effect the geom_smooth call). Is there any way that I can save the results up to geom_smooth call
2006 Aug 21
4
question about 'coef' method and fitted_value calculation
Dear all, I am trying to calculate the fitted values using a ridge model (lm.ridge(), MASS library). Since the predict() does not work for lm.ridge object, I want to get the fitted_value from the coefficients information. The following are the codes I use: fit = lm.ridge(myY~myX,lambda=lamb,scales=F,coef=T) coeff = fit$coef However, it seems that "coeff" (or "fit$coef") is
2008 Nov 17
1
ggplot2: can one have separate ylim for each facet?
In lattice #toy data library(ggplot2) library(lattice) x <- rnorm(100) y <- rnorm(100) k <- sample(c("Weak","Strong"),100,replace=T) j <- sample(c("Tall","Short"),100,replace=T) w <- data.frame(x,y,j,k) xyplot(y~x|j+k,scales=list(y=list(relation="free"))) will give you a scale in each subplot with a range equal to the range of y
2010 Feb 06
1
Why does smoothScatter clip when xlim and ylim increased?
Hi: Is there a way to get smoothScatter to not clip when I increase the xlim and ylim parameters? Consider the following example: set.seed(17) x1<-rnorm(100) x2<-rnorm(100) smoothScatter(x1,x2) #Now if I increase xlim and ylim notice that the plot seems to be clipped at the former xlim, and ylim boundaries: smoothScatter(x1,x2, xlim=c(-5,5), ylim=c(-5,5)) Thanks. Jen sessionInfo() R
2008 Jun 10
1
plotMeans() is there a ylim argument? Please Help.
I can not seem to get a ylim argument into plotMeans() is there anyway to do this. thanks in advance Stephen -- Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis [[alternative
2010 Apr 07
1
How to specify only minimum ylim parameter for boxplot
Readers, For a command: x<-a data matrix y<-another data matrix z<-and another data matrix boxplot(c(x,y,z),las=1,xaxt="n",ylab="text",xlab="text",ylim=c(0,..?)) is it possible to specify only that the boxplot graph starts with value 0 at the bottom of the ordinate (y axis) and the maximum value is determined by data in x,y and z? Yours, rhelp at
2012 Aug 11
1
Ylim problem - plot.correlog, ncf package
Hi, I'm doing cross-correlation correlograms with the ncf package. I have four study sites ; four correlograms. I'd like to get the same y scale for the four of them... only, using "ylim=c(-1,1)" does not change the y scale never and I don't know why. I tried with plot() too. Is there another option to change the ylim in plots ? Example with only one correlog (all work
2003 Sep 04
1
lattice question--- different ylim
Hi there, I have four panels in a lattice bwplot. I want to have two different ylim for the panels, for example panels [1,1] and [1,2] with ylim=c(0,200) and panels [2,1] and [2,2] with ylim=c(0,100). Thanks for help in advance. Mahbub.
2011 Mar 17
1
ggplot, transformation, and ylim
Hey everyone, I'm having a little trouble with ggplot. I have two sets of y-values, one whose range is contained in the other. Due to the nature of the y-values, I wish to scale the y axis with a log base two transformation. Furthermore, I wish to plot the two sets of y-values as boxplots in separate graphs with the same ylim (and thus with the same ticks and tick labels). As of now, I have:
2000 Dec 08
1
ylim doesn't work in boxplots?
I want to leave a little extra room at the bottom for a legend in a box plot, but I find that the boxplot function ignores ylim. Is there any way around this? Thanks. ______________________________________________________________________ Stuart Luppescu -=-=- University of Chicago $(B:MJ8$HCRF`H~$NIc(B -=-=- s-luppescu at uchicago.edu
1999 Nov 15
1
xlim, ylim problem in barplot (PR#325)
Hi, all. The lower bound in a barplot (or the left bound if you're making a horizontal barplot) is -0.01 no matter what. This causes problems if you're making a barplot of small values (say, < .001), as most of the plot is taken up with blank space beneath the axis, and the bars are squeezed in at the top. The fix seems to be simple: replace lines 41: xlim <- range(-0.01,
2000 Feb 07
0
graphics bugs: steep slopes and large values beyond ylim (PR#414)
Some of my students have uncovered some apparent graphics bugs in R. I think they may manifest slightly different on different platforms/ with different display devices (they sometimes report a Windows graph that looks OK but odd results on printing). I'm able to replicate similar problems on my Linux (RH 6.0) system. 1. abline() plots nothing, or a wrong line, when the slope is too
2006 Apr 21
1
plot.default 'ylim' error message is wrong (PR#8784)
Full_Name: Lutz Prechelt Version: 2.2.1 OS: WinXP SP2 Submission from: (NULL) (130.133.8.114) This command plot(0, 0, xlim=c(3, 5), ylim=c(0, 10, 17)) should complain about 'ylim' (because it has three elements). However, it does in fact (in my german error message at least) complain about 'xlim' instead: Fehler in plot.window(xlim, ylim, log, asp, ...) : ung?ltiger
2009 Dec 01
1
boxplot: auto sizing for ylim variable
Dear R-Devel, I am trying to create a boxplot for a large dataset (about 1500 entries) and was wondering if there was away to do auto sizing for the y-axis of a horizontal bar plot? I know I could use a control structure to loop through the data instead, but as I know SAS has something does this automatically I thought R might as well. Thanks, VL [[alternative HTML version deleted]]
2003 Mar 10
1
ylim in plot(corresp(,df=2))
Hi! If I do: plot(corresp(a, nf = 2),xlim=c(-1,2),ylim=c(-1,1)) while the xlim takes effect, the ylim does not, no matter the values given for ylim. Is this intentional? is this an error? (I think this might be related with line 41 in biplot.default in mva) (using R 1.6.2 on a linux (suse 7.3) box.) Thanks Agus Dr. Agustin Lobo Instituto de Ciencias de la Tierra (CSIC) Lluis Sole Sabaris
2003 Aug 25
1
setting xlim and ylim with asp=1
In plot(), when using option asp=1 the xlim and ylim have no effect because they are changed changed in order to fill the whole plot region. Is there a way to automatically set xlim and ylim when asp has been set to 1? For example: #This is a box of the plot ranges I want: boxxy=rbind(c(-1,2),c(-1,-1),c(1,-1),c(1,2),c(-1,2)) #Without asp=1 I get what I want (i.e. I can't see the box because it
2004 Feb 19
1
Setting ylim while plotting an 'its' object
Hi, I have an object 'sat' of class 'its'. How do I have to set the ylim parameter to change the y Axis limits while plotting a time series? Thanks very much for your help, Marcel > class(sat) [1] "its" attr(,"package") [1] "its" > range(sat) [1] -0.5908360386 0.0001541759 > plot(sat,type="p",pch=3,cex=0.5,ylim=c(-1,0.5))