similar to: Help with matplot

Displaying 20 results from an estimated 100 matches similar to: "Help with matplot"

2020 Jan 28
0
matplot.Date & matplot.POSIXct
> > 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? ------ #date and time objects x = Sys.Date () + 1:16 y = as.POSIXct (x) #matrices str (matrix (x, 4, 4) ) str (matrix (y, 4, 4) ) ------ Creating a matrix from a Date
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 for "xlab" and
2020 Jan 28
0
matplot.Date & matplot.POSIXct
>>>>> Spencer Graves >>>>> on Mon, 27 Jan 2020 23:02:28 -0600 writes: > ????? Thanks 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...? yes,
2020 Jan 28
1
matplot.Date & matplot.POSIXct
On 2020-01-28 05:13, Martin Maechler wrote: >>>>>> Spencer Graves >>>>>> on Mon, 27 Jan 2020 23:02:28 -0600 writes: <snip> > > Still, as Abby mentioned, turning a simple function into the > default method of an S3 generic is easy to do, but comes with a > bit of cost, not just S3 dispatch which typically is negligable in > graphics,
2011 Jul 21
1
How to set Color scale for color2D.matplot()
Hello, everyone. I am trying to show the correlation matrix using color2D.matplot(). And I want to map (0,1) to (dark red to dark green). But by default color2D.matplot() will map(min element of given matrix, max element of given matrix) to (dark red to dark green). Can anyone help me with this issue? Thanks a lot! Youcheng Lin ____________ [[alternative HTML version deleted]]
2007 Feb 27
1
matplot on lattice graphics
can I use matplot on each panel of a lattice graphic? How? <https://academico.unicordoba.edu.co/squirrelmail/src/compose.php?send_to=r-help%40stat.math.ethz.ch>
2011 Aug 03
0
Matplot & Polygon
I used matplot to plot multiple lines (over 300 lines). I'd like to draw a polygon and shade the area between upper and lower boundary. I know the plot function works pretty well with polygon(). How about matplot? I have too many lines and my upper/lower boundaries are formed by many different lines. Matplot seems to be more efficient in plotting our all the lines...or perhaps I'm wrong
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 matplot. Is there such an option? Thanks for suggestions,
2007 Oct 14
1
Question re matplot
Hi, I have the following script for matplot matplot(battingagg$X, battingagg[, c("HR","RBI","X2B", "BB", "R", "SB")], type="b",lty=4,lwd=2, col=1:4,xlab = "Year", ylab "(1)HRs, (2)RBIs, (3)DOUBLES,(4)BB,(5)Runs,(6) BB", pty="m",sub = "Figure 2. Plot of Selected Offensive Baseball
2007 Oct 30
1
data.frame, ggplot vs matplot
Hello, I've been trying to use ggplot, but I cannot seem to get my data in the correct form. I usually have a vector x, and a matrix y and I would usually use matplot(x,y) to plot the columns of y against x. Now, if i understand correctly, I should cast x and y into a data.frame and do something like ggplot(x,y,data=data). I think I'm missing something here: do I really need to
2008 Oct 16
2
NAs in color2D.matplot
Hi, I am trying to plot a large matrix by using color2D.matplot. A substantial part of the matrix has no data (NAs). However, when trying to plot it, I get an error. It is only when I change all NAs to zeros that it works, but that in some way introduces 'wrong' data. Is there any workaround this? Thank you in advance!!! Bernardo -- View this message in context:
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] <- 1 motifx[,6:10] <- 2 motifx[,11:15] <- 3 motifx[,15:19] <- 4
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 simple. In the matplot code change: if
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' and loop through all the
2010 Aug 14
1
cca biplot (vegan) failed in matplot
Dear List, I am trying to plot the result of cca using matplot but failed. Pls kindly help and thanks. Elaine The error message was error in xy.coords(x, y, xlabel, ylabel, log = log) : (list) object cannot be coerced to type 'double' code rm(list=ls()) library(vegan) library(MASS) # input richness birdrich
2011 Jul 12
1
matplot with dates/times on horizontal axis
>matplot(timestamp,xymatrix,type='l') where timestamp is a vector filled with POSIXct objects and xymatrix is a numeric 2x2 matrix plots but the horizontal axis labels are raw unformatted timestamps. I would like to format these in any of the available codes for strftime, for instance format="%H:%M". Passing a vector of formatted strings does not work. Any obvious other
2012 Nov 25
1
overlapping matplot
Dear useRs,is there a way in R to overlap curve of each column of two matrices( 19columns and 365rows) and (17cols and 365rows) against single matrix (1 col and 365rows)?i used par(new-TRUE) and "lines" command but both are not working. thanks in advanceeliza [[alternative HTML version deleted]]
2013 Mar 14
0
Ignoring NA in matplot
Dear useRs,How to "matplot" a column of matrix while ignoring NA values in it. More precisely, If a column has 10values in it, and row 7 and 8 are NA, instead of reading 7 and 8 as zeros, it should link 6th row with 9th.I hope my question is understandable...Thanks in advance....Elisa [[alternative HTML version deleted]]
2010 Jun 22
1
Labels for matplot x axis
Hi all, I've been messing with this for a while now.. myStudy is a matrix of word frequency to date of document/document. As you can see I'm trying to plot the series in the matrix. I'd like three things -- 1- In the plot that gets created the first series is a solid line, the rest are dashed... how do I make them either one or the other. 2- The legend that comes up has filled boxes
2011 Apr 03
3
Error in "color2D.matplot" : "Error in plot.new() : figure margins too large"
Hi, I am using color2D.matplot (...) function of "plotrix" package. I used a matrix of size around 20*20 However, apparently it failed to visualize the matrix and gave the following exception, which I don't have any idea about possible source of this error. "Error in plot.new() : figure margins too large" It would be appreciated if someone points me to the right origin