Displaying 20 results from an estimated 10000 matches similar to: "Can one set box line width within the matplot command?"
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
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]
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
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
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
---
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" <-
2005 Oct 21
3
make three plot to one plot
Dear all,
I want to make three plot below to only one plot together with legend,
how can I do that?
I have tried with matplot function but I did not succeed.
Thanks for your help.
Sincerelly,
Jan Sabee
test.five.x <- c(0.02,0.05,0.07,0.09,0.10,0.12,0.13,0.14,0.16,0.17,0.20,0.21,0.34,0.40)
test.five.y <- c(18,12,17,12,3,15,1,5,1,1,3,10,15,10)
plot(test.five.x, test.five.y,
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] =
2023 Jun 28
1
Plotting factors in graph panel
Hi Anupam,
Haven't heard from you in a long time. Perhaps you want something like this:
at_df<-read.table(text=
"Income MF MF_None MF_Equity MF_Debt MF_Hybrid Bank_None Bank_Current
Bank_Savings Bank_NA
$10 1 3.05 29.76 31.18 36.0 46.54 24.75 25.4 3.307
$25 2 2.29 28.79 32.64 36.27 54.01 24.4 18.7 2.891
$40 3 2.24 29.51 34.31 33.94 59.1 25.0 29 13.4
$75 4 1.71 28.90 35.65 33.74
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,
2023 Jun 29
2
Plotting factors in graph panel
Okay. Here is a modification that does four single line plots.
at_df<-read.table(text=
"Income MF MF_None MF_Equity MF_Debt MF_Hybrid Bank_None Bank_Current
Bank_Savings Bank_NA
$10 1 3.05 29.76 31.18 36.0 46.54 24.75 25.4 3.307
$25 2 2.29 28.79 32.64 36.27 54.01 24.4 18.7 2.891
$40 3 2.24 29.51 34.31 33.94 59.1 25.0 29 13.4
$75 4 1.71 28.90 35.65 33.74 62.17 24.61 11.48 1.746
2006 Sep 27
3
Space required by object?
Does R provide a function analogous to LS() or str() that reports the
storage space, on disk or in memory, required by objects?
Ben Fairbank
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
2023 Jun 29
3
Plotting factors in graph panel
Thanks, Pikal and Jim. Yes, it has been a long time Jim. I hope you have
been well.
Pikal, thanks. Your solution may be close to what I want. I did not know
that I was posting in HTML. I just copied the data from Excel and posted in
the email in Gmail. The data is still in Excel, because I have not yet
figured out what is a good way to organize it in R. I am posting it again
below as text. These
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
2001 Nov 29
2
plotting (a) confidence intervals (b) standard error
Hi all,
I'm building a plot of the values in tmeant (below) against positions 1 to
5, using matplot.
tmeant looks like this:
case1 case2
pos1 861.8466 818.5909
pos2 961.2841 976.3466
pos3 878.6080 1262.8523
pos4 950.8011 1129.6080
pos5 968.1080 1063.3920
I also have lower (object tl) and upper (object tu) bounds on the
confidence intervals as follows:
tl:
pos1
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
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",