Displaying 20 results from an estimated 10000 matches similar to: "matplot"
2000 Mar 26
1
matlines, matpoints don't follow prototype (PR#506)
The Blue Book allows the 'type' argument to be used in matpoints and
matlines.
matlines(x, y, type="l", lty=1:5, pch=, col=1:4)
R-1.0.0 does not.
Thus, type="h", "b", must be invoked thru matplot( x, y, type = "h",
add=TRUE)
For the sake of consistency with S, it would be nice to have matlines
defined as:
"matlines" <-
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,
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
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 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]
2009 Jan 14
1
Help with Plot/Legend
Dear R-Users
I have 2 questions:
Firstly, If I create a matplot and legend for multiple vectors and then tag
another vector on using matlines (e.g. a 'total' of all vectors), is there
anyway to add the new line to the legend without recreating it? I have
created the plot this way because I would like to define the lty and lwd for
the 'total' vector so that it can be
2003 Dec 09
1
arni.colors
Dear r-devel,
I have implemented a function to create color palettes with improved
contrast and logical order, compared with the built-in ones:
source("arni.colors.R") # code is given below
barplot(rep(1,100), col=arni.colors(100), space=0, border=0, axes=F)
par(mfrow=c(2,1)) # rainbow() has too much green...
barplot(rep(1,50), col=rev(rainbow(50,end=0.7)), space=0, border=0,
2009 Sep 11
2
help with for loop
example code:
P = function(whichday,columns){
y = which(pvalue[,whichday]<Pvaluetest, arr.ind=TRUE)
dayarb = raw_urine[y,day1_ind]
daystand = raw_urine[y,columns]
meandayxx = geometricmeanRow(dayarb)
meandayyy = geometricmeanRow(daystand)
diff = meandayyy - meandayxx
for(i in 1:nrow(diff)){
if(diff[i]>0){
#diffbig = meandayxx<meandayyy
x_index[i] = which(diff[i]>0)
x[i] =
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
2010 Mar 29
1
getting CI's for certain y of nls fitted curve
hello,
i managed to get CI's for my curve - but now I need the intervall for a
certain y point (y_tenth) of the curve..
can anyone help me with this?
#####data:
por<-data.frame(list(structure(list(run = structure(c(1L, 1L, 1L, 1L, 2L,
2L,
2L, 2L, 3L, 3L, 3L, 3L), .Label = c("1", "3", "4"), class = "factor"),
press = c(15, 21, 24, 29.5, 15, 21,
2002 May 29
1
bug in xfig()?
I'm using (Linux version) xfig() within a function
and then simple matplot() and matline() plots.
Although I do not define any bg or fg default color,
sometimes all lines in the final fig file are green.
The same code works as (I) expected if I use
x11() or pdf().
This is what I'm doing:
I open 2 devs:
xfig()
dev.set(2)
layout(mat1)
xfig()
dev.set(3)
2005 Jul 07
2
Brewer colours
Anyone who is interested in using optimal colour palettes should
look at the work of Cindy Brewer: www.colorbrewer.org
I have written code to use her colour schemes in R. It is
included below. Perhaps someone may find this interesting enough
to work into a package.
Included also is a function showpalette, which was posted here a
while back. I don't remember who wrote it.
I have copied all
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
2004 Jun 08
0
interaction plot with intervals based on TukeyHSD
Hi,
The problem is that I would like to do an interaction plot with
intervals based on Tukey's honestly significant difference (HSD)
procedure, but I do not know how to do it in R.
I have 3 factors "A", "B" and "C" and a response variable "response".
I would like to study a model where there are main effects and second
order interaction effects.
2009 Sep 11
1
help with plotting
HI all,
raw_urine =
read.table("Z:\\bruce.9.3.09.sample.stability.analysis\\urine\\mz.spot.sam.dat.new",
header = TRUE )
pvalue =
read.table("Z:\\bruce.9.3.09.sample.stability.analysis\\urine\\all.urine.features.t.test.result",
header = TRUE )
library(compositions)
p = function(a,b){
y = pvalue[,a]
if(y<0.01){
index = which(y, arr.ind=TRUE)
day1 = raw_urine[index,3:7]
day2 =
2004 Sep 17
1
Confused about specifying plot colors as RGB values
Based on reading 'rgb' documentation, I would have thought
the following would have produced identical results. Can
someone explain how to make this happen? I need to be able
to specify an array of rgb values for the 'col' parameter.
colnames.col <- c("black", "red", "blue", "green")
colnames.rgb <- apply(as.matrix(colnames.col), 1,
2008 Jul 09
1
matplot help
Hi,
My question is how do I gain control over what values the X and Y axis show. Below is a sample plot I have made and want the X axis to represent a time vector with values taking the form Q1.60, Q2.60, Q3.60...Q1.90..etc...Currently the X axis starts with value 0 and increases by 1 through the end of the sample.
win.graph()
matplot(v.0,log.diff.v.6,type="l",lty=1, col=2,
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,