Displaying 20 results from an estimated 8000 matches similar to: "Better y-axis labels, and x-axis scaling"
2008 Feb 11
2
Questions about histograms
Hello
I'm doing some experiments with the various histogram functions and I
have a two questions about the "prob" option and binning.
First, here's a simple plot of my data using the default hist()
function:
> hist(data[,1], prob = TRUE, xlim = c(0, 35))
http://go.sneakymustard.com/tmp/hist.jpg
My first question is regarding the resulting plot from hist.scott() and
2012 Dec 02
1
overlapping graphs in logarithmic y-axis
dear useRs,
i want to overlap graphs of two matrices in such a way that the y-axis of graph should be "logarithmic" against normal x-axis.
i am, unsuccessfully, trying the followings
>matplot(mata, log="mata",type = "l", col="red)>lines(mata, log="matb",type = "l", col="yellow")
could you please help me out on it??
thanks in
2002 Aug 05
3
Formatting POSIXt values in plot axis labels
Hello.
I have an XYY series that I would like to graph with matplot() or some
other single function that will do the trick.
The X in question is a vector of POSIXt values obtained from strptime().
Is it possible to tell matplot() how to handle POSIXt x values?
I have examined the examples at
http://lark.cc.ukans.edu/~pauljohn/R/statsRus.html#5.22 , but would
prefer not have to overlay the
2007 Mar 23
1
Space for X and Y axis labels
Hello all,
I'm having a bit of a problem with x and y axis labels. Two things:
first, if I want to create a plot with,
plot.new()
plot.window(.....)
axis(1)
axis(2)
lines(...)
points(...)
[etc.]
... where do I introduce the xlab=... and ylab=... commands? I
attempted this in plot.window() but no labels showed up.
Second, here's a bit of real code...
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",
2008 Mar 26
1
Adding name labels to x-axis of matplot
Hello,
I have a gene expression matrix with columns being samples and rows
being genes. I would like to display the expression values for each
gene. I have two groups which I colour differently. The aim is to see
if there is any difference between the two groups consistently across genes.
So the following works well:
2009 May 04
2
Reversing axis label order
Dear R Users,
I am executing the following command to produce a line graph:
matplot(aggregate_1986[,1], aggregate_1986[,2:3], type="l", col=2:3)
On the x-axis I have values of Latitude (in column 1) ranging from -60 to +80 (left to right on the x-axis). However, I wish to have these values shown in reverse on the x-axis, going from +80 to -60 (ie. North to South in terms of Latitude).
2010 Oct 06
1
User authentication fields size limit
Hello
I'm using authentication via SQL, and I'm storing the full mail_location
in the database. This is a long string because we're using multiple
partitions and hashing to create this path. It looks like this:
# doveadm user andre=sneakymustard.com
userdb: andre=sneakymustard.com
password : $1$ixW87UeD$fLhORaJS0c5wNFmWqfJdI1
mail :
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
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]]
2003 Jun 28
2
Truncating y axis
Hi folks,
I want to have a y-axis using matplot where the y axis is truncated as
shown schematically below:
(msecs)
3000 | x
~
~
800 | x
|
| x
|
----|----|----|-----------------
1 2 3
Position
The ~ is supposed to stand for a curved line showing a break. The issue is
that I want to plot the points shown by the
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
2010 Feb 07
4
x-axis plot problem
Hi all,
I tried to have plot of many vector in one plot and i have got a nice plot
but i have problem with x-axis. I want to have month and year only(Jul.07
means July 2007) in x-axis without appearing other number behaind it.
I would appercit any help.
The R code:
F<-c(7.49,6.91,6.78,6.99,7.44,7.42)
M<-c(4.81,4.51,5.21,4.65,4.75,3.86)
P<-c(7.49,15.03,15.19,15.32,15.42,15.45)
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
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
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 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
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