search for: toplot

Displaying 6 results from an estimated 6 matches for "toplot".

Did you mean: coplot
2010 Mar 31
3
creating a variable using concatenation
..., as i have to generate a bunch of these plots and need to loop. So how do i concatenate to create a variable, then reference that variable in a function call? R> x <- data.frame(1,2,3,4,5,6,7,8) R> x X1 X2 X3 X4 X5 X6 X7 X8 1 1 2 3 4 5 6 7 8 R> x$X1 [1] 1 R> i=1 R> toplot <- paste("x$X",i,sep="") R> toplot [1] "x$X1" okay lets test: R> plot(x$X1) -it works i see the plot however this DOES not work R> plot(toplot) Error in plot.window(...) : need finite 'ylim' values In addition: Warning messages: 1: In xy.coord...
2002 Oct 11
1
plot region ??
...t 2 bars the default barwidth is to wide (aesthetically speaking). by adjusting width and xlim one can actually produce narrow bars, but then the plotted graph is not in the center of the plot region, which means that for example the title of the plot isn't centered above the barplot. e.g. toPlot<-c(5,6) barplot(toPlot, width=c(0.4), xlim=c(0,3)) title(main = "Female - Male", font.main=2) any ideas how to get rid of this problem ?? greetinx jan -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac....
2008 Apr 15
2
a question of alphabetical order
...he alphabetical order of vector of strings. I mean, a or ? don't matter for establishing the alphabetical order. Nevertheless, while working with R order, here is what I get. Given a file transport.txt medio#variable avi?n#34 barco#33 bicicleta#3 ?ngulo#37 cami?n#54 coche#23 tren#67 > toPlot <- read.csv("~/Desktop/Workplace/transport.txt",header=TRUE,sep="#") > toPlot[order(toPlot$medio),] medio variable 1 avi?n 34 2 barco 33 3 bicicleta 3 5 cami?n 54 6 coche 23 7 tren 67 4 ?ngulo 37 &g...
2008 Jun 11
1
mgcv::gam error message for predict.gam
Sometimes, for specific models, I get this error from predict.gam in library mgcv: Error in complete.cases(object) : negative length vectors are not allowed Here's an example: model.calibrate <- gam(meansalesw ~ s(tscore,bs="cs",k=4), data=toplot, weights=weight, gam.method="perf.magic") > test <- predict(model.calibrate,newdata) Error in complete.cases(object) : negative length vectors are not allowed > The data is shown below: > toplot[,c("meansalesw","tscore","weight")]...
2007 Feb 13
4
matlab style plotting in R
Hello I was wondering how I can achieve matlab style plotting in R, in the sense that matlab allows you to plot multiple sets of variables within the same x-y axes. plot in R does not seem to cater for this. I tried 'overplot' from the gplots package but this assumes different y axes for the variables. any suggestions would be very appreciated Maria [[alternative HTML version
2005 Nov 03
3
newbie graphics question: Two density plots in same frame ?
I swear I've scoured the help files and several texts before posting what feels like a dumb newbie question. How can I draw two kernel density plots in the same frame ? I have similar variables in two separate data frames, and I would like to show their two histograms/densities in a single picture. Same units, scale, range for both, so I'm simply trying to draw one and then add the