Pre-process your data into per-day or per-month records, then plot it. There
are many ways to do this... for example, base R has the aggregate function, and
the dplyr package has the group_by/summarise functions, and the data.table
package can do this as well (read the vignettes).
All of these
Normally, one turns off the x-axis tick marks and labels by supplying
xaxt='n' in the plot() call, and then adds a customized x-axis using the
axis() function.
But without more information, little help can be provided (a vague question
receives a vague answer).
I'd suggest reviewing the pos
Hi all,
I have a little problem with plot function..
I have an hourly dataset and I would like plot a variable with x-axis based
on daily or monthly frequency, just to have a better visualization and
avoid on x-axis all hours of the dataset.
Do you know what is the solution?
Thanks
Edo
[[
On 13-12-18 5:23 PM, capricy gao wrote:
I checked as you suggested. However, I found that the number in those
functions are the number of colors. In contrast, my number here means a
specific color, for example, 2 in my code means "red", 3 in my code
means "green"
You didn't read very caref
As Duncan suggested, this will probably get you what you want.
You can set the transparency using alpha.f in adjustcolor().
x <- c(1:5)
color <- c(2,2,3,4,5)
color_transparent <- adjustcolor(color, alpha.f = 0.3)
plot(x, col = color, pch = 20, cex = 4)
plot(x, col = color_transparent, pch = 20,
you will need to specify colours as RGB values and then set transparency
via the "alpha" argument.
e.g.: color=rgb(0,0,0,alpha=0.3)
# will give black (0,0,0) and a transparency of 30%.
Best wishes
Christoph
On 18/12/2013 23:23, capricy gao wrote:
I checked as you suggested. However, I foun
I checked as you suggested. However, I found that the number in those functions
are the number of colors. In contrast, my number here means a specific color,
for example, 2 in my code means "red", 3 in my code means "green"
On Wednesday, December 18, 2013 1:18 PM, Duncan Murdoch
wrote:
On 13-12-18 2:08 PM, capricy gao wrote:
I found all the color transparency was defined with character color, or rgb
color. What if I have number code and still try to modify the transparency?
For example:
x=c(1:5)
color=c(2,2,3,4,5)
plot(x, col=color)
plot(x, col=color,pch=20)
here I define
I found all the color transparency was defined with character color, or rgb
color. What if I have number code and still try to modify the transparency?
For example:
>x=c(1:5)
> color=c(2,2,3,4,5)
> plot(x, col=color)
> plot(x, col=color,pch=20)
here I defined color by numbers, how can I modify
On 04/24/2012 01:25 AM, la mer wrote:
Hello,
I am having a problem where code that plots lines using a different data
frame plots bars with the current data frame (I am intended to plot lines).
The code specifies lines (see below), so I can't figure out why the results
are bars. I suspect that i
It is indeed the fact you're plotting factors, but unless you say what
"as intended" is, it's hard to provide exactly what you're seeking.
Perhaps this will help though:
X <- factor(sample(letters[1:5], 15, TRUE))
Y <- rnorm(15)
dats <- data.frame(X, Y)
plot(Y ~ X, data = dats) # No good
plot(X
Hello,
I am having a problem where code that plots lines using a different data
frame plots bars with the current data frame (I am intended to plot lines).
The code specifies lines (see below), so I can't figure out why the results
are bars. I suspect that it may have something to do with the fact
Duncan Murdoch wrote:
> On 20/06/2008 4:09 AM, Norbert NEUWIRTH wrote:
>> dear userRs,
>> I am deeply ashamed asking you this very basic question, but I did
>> neither get it online nor by the S/R-literature I have.
>> I simply want to plot the values of a COUPLE of vectors within one
>> graph - in
On 20/06/2008 4:09 AM, Norbert NEUWIRTH wrote:
dear userRs,
I am deeply ashamed asking you this very basic question, but I did neither get it online nor by the S/R-literature I have.
I simply want to plot the values of a COUPLE of vectors within one graph - in
concrete a couple of time serie
Norbert NEUWIRTH univie.ac.at> writes:
>
> I am deeply ashamed asking you this very basic question, but I did neither get
it online nor by the
> S/R-literature I have.
>
> I simply want to plot the values of a COUPLE of vectors within one graph - in
concrete a couple of time series, a
> couple
dear userRs,
I am deeply ashamed asking you this very basic question, but I did neither get
it online nor by the S/R-literature I have.
I simply want to plot the values of a COUPLE of vectors within one graph - in
concrete a couple of time series, a couple of distributions and some stacked
a
On Tue, Apr 8, 2008 at 12:47 PM, Pedro Mardones <[EMAIL PROTECTED]> wrote:
> Dear all;
>
> I'm trying to create a 2 x 3 plot (something I know like lattice can
> do better) using the plot function. However; I'm not sure how to make
> the width of the plots to be the same on each column. I guess
Dear all;
I'm trying to create a 2 x 3 plot (something I know like lattice can
do better) using the plot function. However; I'm not sure how to make
the width of the plots to be the same on each column. I guess the
answer maybe obvious but I haven't been able to figure it out. I'll
appreciate any
18 matches
Mail list logo