search for: matplot

Displaying 20 results from an estimated 462 matches for "matplot".

2020 Jan 23
2
matplot.Date & matplot.POSIXct
Hello, All: ????? Roughly a decade ago, I added "matplot.Date" and "matplot.POSIXct" to the "fda" package, so we could get reasonable labeling of the horizontal axis when "x" was class "Date" or "POSIXct".? I also added a local version of "matplot.default" that just changes the defaults...
2020 Jan 28
1
matplot.Date & matplot.POSIXct
...ady relied on > the current as.numeric(x) behavior? > If we'd change this in R's graphics, it will be > - me and/or the CRAN team who have to contact CRAN package > maintainer about problems > (maybe none, as the change may not break any checks) > > - Users of matplot() {& matlines() & matpoints()} who may have to > adopt their calls to these functions {I'm pretty sure all > three would have to change for consistency}. > > ----- and then, there are quite a few other changes, bug > assignments to which I have committed wh...
2020 Jan 28
4
matplot.Date & matplot.POSIXct
...anks for the reply. On 2020-01-27 19:56, Abby Spurdle wrote: > Maybe I'm missing something really obvious here, but I was unable to > create a matrix out of POSIXct object(s). > Perhaps that deserves a separate discussion...? ????? Can you provide an example? ????? The standard matplot application that concerns me is with matplot(x, y, ...) where x has class Date or POSIXct and y is a matrix.? The "fda" package on CRAN includes a "matplot" help page with examples that worked when I tested them recently. ????? If you have an example that you think should...
2006 Dec 07
2
Matplot does not work with x being POSIXt class (PR#9412)
Hi, Matplot works with x being Date class but not POSIXt. Here is the example with R version 2.5.0 Under development (unstable) (2006-12-06 r40129) Example: x <- Sys.Date() - c(1:10) y <- cbind(1:10, 10:1) class(x) ## [1] "Date" matplot(x, y) x <- strptime(as.character(x), format="%Y...
2020 Jan 28
0
matplot.Date & matplot.POSIXct
...urdle wrote: >> Maybe I'm missing something really obvious here, but I was unable to >> create a matrix out of POSIXct object(s). >> Perhaps that deserves a separate discussion...? yes, very much a separate discussion. Let's come back to Spencer's topic of matplot() : [....] > ????? The standard matplot application that concerns me is with > matplot(x, y, ...) where x has class Date or POSIXct and y is a matrix.? > The "fda" package on CRAN includes a "matplot" help page with examples > that worked wh...
2010 May 05
1
'matplot' for matrix with NAs: broken lines
Hi list, I know that points involving NAs are not plotted in 'matplot', but when I plot them as lines, I still want the lines to connect all the points (i.e. not broken where there are NAs).? Please see the example below.? How can I achieve this in 'matplot'?? If I can't, any good alternatives so I don't have to use 'plot' + 'lines'...
2008 Oct 15
2
Help with matplot
Hi, I apologise in advance for the na?ve question. I have large matrices that I want to plot. I currently use color2D.matplot. However, these matrices contain many values of no interest (i.e. where there is no data, the figure -999 is automatically displayed). Is there any way of removing these from the matrices to be plotted by matplot? An obvious possibility is setting them all to 0, but that introduces 'false data&...
2007 Mar 12
1
Can one set box line width within the matplot command?
Hello R users -- I am using matplot to prepare graphs and cannot find a way to use (for example) box(lwd=3) within the matplot command and instead have been setting the box line width after drawing the graph, by using box(lwd = 3). Looking over the ?par options and the matplot() help I do not see a way to set box width within matplo...
2008 Jun 17
2
color2D.matplot axis names
Hi, I finally came up with a nice colored matrixplot, using the color2D.matplot function of the plotrix package. But I can't assign xtics and ytics to this plot. I made sure that the matrix has correct colnames() and rownames(). Here's what I do: a=matrix(1:16, 4, 4) colnames(a) <- c("X1", "X2", "X3", X4) rownames(a) <- c("Y1&...
1998 Jan 16
0
matplot
matplot doesn't seem to pass through options like lwd, cex, etc. quite the way I'd like. I've thought of two ways to fix this, I don't know which is better. The first is to treat lwd, cex, etc., exactly like the other options (col, lty ...) -- (these diffs are long, skip down two pages...
2009 Mar 23
2
matplot does not considere the parametre lend (PR#13619)
Full_Name: Christophe Genolini Version: 2.8.1, but also 2.9 OS: Windows XP Submission from: (NULL) (82.225.59.146) I am using matplot with the option lend="butt", but only the first line (the black) is printed correctly : > matplot(matrix(1:9,3),type="c",lwd=10,lty=1,lend="butt") Gabor Grothendieck find the problem in matplot code: the ... is passed to plot (which plots the first series) but no...
2020 Jan 28
0
matplot.Date & matplot.POSIXct
...ate or POSIXct object, results in a numeric matrix, not a date/time matrix. I think that date/time matrices could be useful. It's possible that this has been discussed before. But if not, it may be good to discuss it. And returning to your original post... I re-read the documentation for the matplot function. And I feel that it's ambiguous. The description says: "Plot the columns of one matrix against the columns of another." i.e. The matplot function is for *matrices*. However, then it says: "x,y vectors or matrices of data for plotting. The number of rows should match.&q...
2010 Mar 06
1
color2D.matplot not giving colors
I am using color2D.matplot to plot a matrix about 400 by 200. The values in the matrix are 0:5 and NA. The resulting plot is not color, but shaded b/w. I tried to figure out how to add colors, I would like something like c(blue, green, red, cyan, green) #example motifx <- matrix(NA, nrow=100,ncol=20) motifx[,1:5] &l...
2006 Jun 29
1
inconsistent matplot behaviour?
I raised this question quite some time ago but it quitly went down the river. I'll give it a second try (before keeping my modified version of matplot for ever...): matplot supports vectors (and/or character strings) for a number of arguments namely `type', `lty', `lwd', `pch', `col', `cex'. all of them act consistently in such a way that the first entries are used for plot of x-column 1 vs. y-column 1 and so forth. fo...
2009 Apr 16
2
error bars in matplot
Hi, I was trying to get error bars in my matplot. I looked at an earlier thread, and the sample code that I made is: #------------------ library(plotrix) mat1 <- matrix(sample(1:30,10),nrow=5,ncol=2) ses <- matrix(sample(1:3,10,replace=T),nrow=5,ncol=2) vect <- seq(20,100,20) rownames(mat1) <- rownames(ses) <- vect colnames(mat1)...
2008 Feb 01
2
bug using matplot (PR#10676)
Full_Name: Anne CORI Version: 2.6.1 OS: windows Submission from: (NULL) (134.157.220.19) let A be a mtrix with n lines and p columns, p>36 ; matplot(A) will only draw the plot of the first 36 columns of A. This is due to a bug in the definition of pch in the function : pch <- c(paste(c(1:9, 0)), letters)[1:k] should be replaced by pch <- c(paste(c(1:9, 0)), letters) I hope this is clear, All the best, Anne
2009 Sep 28
2
Data formatting for matplot
Dear List, I am wanting to produce a multiple line plot, and know I can do it with matplot but can't get my data in the format I need. I have a dataframe with three columns; individuals ID, x, and y. I have tried split() but it gives me a list of matrices, which is closer but not quite what I need. For example: id<-rep(seq(1,5,1),length.out=100) x<-rnorm(100,5,1) y<-rnor...
2007 Nov 06
1
color2D.matplot
I am a true R novice aonly using it for this function ;) I am trying to use color2D.matplot to form a image of my data using the following conditions color2D.matplot(fi1, c(dr), c(dg), c(db), nslices=7, ylab='Species', xlab="gene", show.legend=TRUE) where fi1 is my matrix. I have a matrix with 36 columns and 130 rows. most entries are 1 or 0 and I am trying to get this...
2010 Apr 21
1
Unexpected warning from matplot
n <- 63 a <- 1:n x <- a-1 y <- outer(x,a) matplot(x,y,type='l') Warning message: In matplot(x, y, type = "l") : default 'pch' is smaller than number of columns and hence recycled Why is it complaining if I specifically ask for type="l", so no pch involved? Annoyance or feature? The fix (if needed) is simp...
2005 Jun 01
2
How to name variables in a single plot
...or ylab. At the below , it follows some lines, only as an example that you could try please, if it is possible. I really thanks for your attention. Amir library(graphics) y<- c(1:100) x1<-seq(0.1,10, by=0.1) x2<-seq(0.5,50,by=0.5) mydata<- data.frame( y=y, x1=x1, x2=x2) matplot(mydata, type = "l" ) matplot(mydata, type = "l" ,xlab="Time") matplot(mydata, type = "l" ,xlab="Time",ylab="MSE ") __________________________________________________ [[alternative HTML version deleted]]