Displaying 20 results from an estimated 462 matches for "matplots".
Did you mean:
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 for "xlab" and
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,
2020 Jan 28
4
matplot.Date & matplot.POSIXct
????? 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...?
????? Can you provide an example?
????? The standard matplot application that concerns me is with
matplot(x, y, ...) where x has class Date or
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-%m-%d")
## [1] "POSIXt" "POSIXlt"
matplot(x, y)
Error in
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,
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
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
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,
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 if you want
to see the other way)
*** matplot.orig Tue Jan 13 18:17:54 1998
---
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
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
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
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
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) <- colnames(ses) <- letters[1:2]
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
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)
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 simple. In the matplot code change:
if
2005 Jun 01
2
How to name variables in a single plot
Dear R Friends ,
I want to name my variables( more than 2 variables in a single plot) within a plot to distinct them from each other, but I cann't. How it is possible? I don't mean x and y axis using xlab 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<-