similar to: Xy plot help

Displaying 20 results from an estimated 130 matches similar to: "Xy plot help"

2012 Apr 24
1
Nested longitudinal data
Hi, I have some difficulty in figuring out whether I am doing correct or not. A brief introduction about the work: It is a light/dark choice test conducted in insect larvae.  The response is binary (0- present in dark area, 1-present in light area) and the experiment is run for 15 min, so there are 15 repeated measurements per individual larva at 1 min intervals.  The factors which affect
2012 Oct 30
0
Error em plot.xy(xy.coords(x, y), type = type, ...) : objeto 'membros' não encontrado
Hi, I'm trying to plot a map with the location of the stations that I am using require(MASS)require(maps) mapaBrasil <- read.table("BASE_BR.txt",sep="") latlonRS <- read.csv2("coordenadas.txt",h=F,sep="") png(filename="mapa_grupos.png",width=600,height=800) # criating a map for RSmap(xlim=c(-80,-35),ylim=c(-45,10),
2005 Oct 03
1
Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ
I am currently trying to use R to construct a regression model to explain output based on temperature. I have combined my output and temp data into a notepad file. there is no problem with loading the data into R. > data.df output temp 1 850 17 2 849 17 3 905 17 4 925 17 5 1043 19 6 1104 20 7 1097 18 8 979 19 9 926 18 10 1133 18 ~~ ~~ 240 1124
2007 Nov 20
1
xy.coords and log10
Is there a way to teach xy.coords, when given log="xy", or just "x" or "y" separately, to do a decimal log10 instead of the natural log? Cheers, Alexy
2012 Feb 17
0
error with read.zoo, "Error in xy.coords(x, y) : (list) object cannot be coerced to type 'double'
I'm now trying to read.zoo in a rather long txt file with two columns: date/time and value in kW e.g. 432.2189 The read.zoo function finally ran without errors but not sure it is correct. I took the header off, and put in commas and added a " at the beginning and " at the end. z=read.zoo("Kevin-0-comma-ITPower.txt","%m/%d/%Y
2007 Dec 05
1
Plotting error bars in xy-direction
Dear R-help, I am looking for a function that will plot error bars in x- or y-direction (or both), the same as the Gnuplot function 'plot' can achieve with: plot "file.dat" with xyerrorbars,... Rsite-searching led me to the functions 'errbar' and 'plotCI' in the Hmisc, gregmisc, and plotrix packages. As I understand the descriptions and examples, none of
1999 Mar 05
0
log="xy" fails in plot.default
Hi - I get the following complaint from R windows 632 on this command > plot.default(ppmZnSGS+1, ppmZnALS+1, main = "5 Lab Check ppmZn SGS vs ALS",log="xy") Error: missing value where logical needed The following doesn't complain > plot.default(ppmZnSGS+1, ppmZnALS+1, main = "5 Lab Check ppmZn SGS vs ALS",log="") log="xy" is included
2005 Dec 31
1
xy.coords
In ?xy.coords it says: If 'y' is missing and 'x' is a formula: of the form 'yvar ~ xvar'. 'xvar' and 'yvar' are used as x and y variables. list: containing components 'x' and 'y', these are used to define plotting coordinates. time series: the x values are taken to be 'time(x)' and the y
2011 Sep 23
1
broken save(..., compress="xy")
Hi, With current R devel and R 2.13.1: > aa=1:5 > save(aa, file="aa.rda", compress="xy") Error in identical(compress, "gzip") || compress : invalid 'y' type in 'x || y' Thanks! H. > sessionInfo() R version 2.13.1 (2011-07-08) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C [3]
2016 Aug 07
1
problem with abine(lm(...)) for plot(y~x, log='xy')
Hello: In the following plot, the fitted line plots 100 percent above the points: tstDat <- data.frame(x=10^(1:3), y=10^(1:3+.1*rnorm(3))) tstFit <- lm(log(y)~log(x), tstDat) plot(y~x, tstDat, log='xy') abline(tstFit) I can get the correct line with the following: tstPredDat <- data.frame(x=10^seq(1, 3, len=2)) tstPred <- predict(tstFit, tstPredDat)
2007 Apr 27
1
xy plot key colors don't match plot
Hi Trying to finish a simple xyplot, but the key colors don't match those specified on the plot. I have only been able to change the color of the key text, but not the points. Hours <- c (25.88,32.31,24.04,23.27,16.64,19.75,27.25,17.9,20.45,29.65,20.83,27.17, 28.42,28,18.85,17.4,19.75,25.34,23.23,29.85,28.96,25.6,14.67,20.55,25.77 ,
2009 Mar 02
1
xy-plot alb font size
I would appreciate any help for the following question. How to increase the font size of labels for the x and y axes in the following code? --------------------------------- xyplot(lbxglu~lbxgh|eth,reg.dat.5, panel = p, col = 1:2, par.strip.text = list(cex = 1.25,col="brown"), xlab="A1C",ylab="Fasting Plasma Glucose", main="FPG") p <- function(..., col)
2009 Oct 20
1
plotting labels (not values) on xy plot
I have 2 vectors, x and y and have done an xy plot. I want to plot the label (name?) of the vector on the plot rather than the value. text(x,y, labels = x) gives me the value of x. text(x,y, labels = labels(x)) gives me something like c("text1","text2"..) plotted for each point text(x,y, labels = names(x)) gives nothing print(x) gives me [,1] text1
2011 Aug 26
1
Add lines to xy plot with temporal x axis
Hi. I'm trying to add some vertical lines to an xyplot in which x axis is a temporal variable (class=dates) and y axis a factor variable. This is my code: xyplot(factor(Abacus$Emisor)~Abacus$Dia,xlab="Date", ylab="Fish",pch=124, scales=list(x=list(format="%b %Y",tick.number=30)) , panel=function(...){ panel.xyplot(...) panel.abline(v=08/08/2008) }) I'd
2011 Nov 26
1
plot xy data
Hi, Has anyone know about how to get the correct plot? I have use this R script (as below), so I expect the plot is based on x axis, but the result was opposite. Any suggestion will be great. library(IRanges) data <-read.table(file="~/q20snpref/illusmp454merbed",sep="\t",header=F) colnames(data)<-c("Scaffold","sca_position","coverage")
2011 Nov 29
0
Labels in xy-plots
Hi, I am new to R. How can I get labels/different colours on the lines in my xy-plots. I plot "het" against "temp" conditional on "year" and "station". library(lattice) MyLines <- function(xi, yi, ...){ #Draws line in the panels while avoiding spaghetti-plots I <- order(xi) panel.lines(xi[I], yi[I], col = 1)} xyplot(het ~ temp | fstation,
2002 Apr 04
0
ozone.xy
Hi! Where is ozone.xy? I've found ozone in package fields, but cannot find ozone.xy Actually, is there any way to find in which package lives a particular dataset (if the package is not installed in the local system?) Thanks Dr. Agustin Lobo Instituto de Ciencias de la Tierra (CSIC) Lluis Sole Sabaris s/n 08028 Barcelona SPAIN tel 34 93409 5410 fax 34 93411 0012 alobo at ija.csic.es
2009 Aug 31
0
xy.coords assumes lists will have x and y components, but doesn't check (PR#13936)
Full_Name: Richard Calaway Version: 2.9.2 OS: Mac OS X 10.5.3 Submission from: (NULL) (65.47.30.18) Here's my sessionInfo(): > sessionInfo() R version 2.9.2 (2009-08-24) i386-apple-darwin8.11.1 locale: en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base Currently, if you pass a list
2008 Nov 11
1
Multiple XY Lines Plot
Hi list, I’m trying to plot lines in the same graphic. There are lots of similar topic on the list history. I’ve read about xyplot (lattice) and other ways to do that but I only got complex error messages, and wasn’t able even to start a decent R scrip. Well I have some paired information (each H W ), were H is the y axis and W is the x axis, how could I plot all the four lines at the same image?
2011 Jul 22
2
Fit elipse to xy scatter
Hi, I know there is a package 'elipse' available but I'm not sure how to use it for my specific implementation. What I would like to do is fit an elipse to two lines of identity (at right angles to each other), as indicated in the following figure: http://imageshack.us/photo/my-images/30/poincareplotwip.png/ Conceptually, I'm really struggling to even come up with a way of