Displaying 7 results from an estimated 7 matches for "colvec".
2011 Jan 27
1
How to xyplot without borders
Hello I have the following data.frame and xyplot. I need this plot without
the borders. Does anybody know how to get this xyplot without borders o with
white borders?
Thank's in advance
Juan Hernández
my.label <- data.frame(quantil=rep(20,8),
my.factor=factor(c('FA','FB','FC','FD','FE','FG','FH','FI')))
library(lattice)
2011 Mar 17
1
Using barplot() with zoo -- names.arg not permitted?
...ly(df_d, 1, sum), "/")[, paste(oid, cpu_states[1:4], sep = "")] * 100
Well, that is, I save the percentages in which I'm interested.
So far, so good. df_pct is a zoo (as expected, and the content looks
reasonable.
I then plot it, e.g.:
barplot(df_pct, border = NA, col = colvec, space = 0, main = title,
sub = sub, ylab = "CPU %", ylim = c(0, 100), xlab = "Time")
But the X-axis labels show up as "large integers" -- the POSIXct values
are apparently treated as numeric quantities for this purpose.
And if I try
barplot(df_pct, border = NA, c...
2003 Nov 12
3
(no subject)
Hi all,
I am looking for a clever way to create the following graph using R:
I got information on the shares of some subgroups over time (summing up to 1 in each year). The graph I want to create should display the development of the individual shares over time by shading rectangulars for each share in a different color.
Is there a clever of doing this?
Thanks for your help
Stefan
2004 Dec 23
3
combination of scatterplot and image graph
Dear R users,
I'm interested in a combination of a scatterplot and an image graph.
I have two large vectors. Because in the scatterplot some areas are
sparsely and others densely populated, I want to see the points, and
I also want their color to be changed based on their density (similar
to a heat map). Is there a function that can do that?
Thank you,
b.
2009 Jul 10
0
Error when running the examples in plotMultiTS / QRMlib
...type 'S4' is not subsettable
> Zdata <- log(Sdata);
> rm(Sdata);
> #Plot all 4 columns on same graph:
> plotMultiTS(Zdata, reference.grid=TRUE);
Error: subscript out of bounds
> #plot only columns 2 and 3 on the graph:
> plotMultiTS(Zdata, colvec= c(2,3),reference.grid=TRUE, format="%Y-%m");
Error in .subset(x, i, j, drop = FALSE) :
object of type 'S4' is not subsettable
2nd question:
running > plotMultiTS i find the line:
"xxx = tS[, i]@Data"
Why would someone name a variable "xxx"? Is this som...
2012 May 03
1
Simple plot loop
Trying to plot multiple lines from a simple matrix with headers (eight observations per column). I will be doing a number of these, with varying numbers of columns, and do not want to enter the header names for each one (I got frustrated and just wrote them out, which did work).
Data reads fine, first plot is fine, but when i use the code at the bottom for a for i loop it tells me that x and y
2011 Nov 21
6
Scatter plot - using colour to group points?
Dear All,
I am very new to R - trying to teach myself it for some MSc coursework.
I am plotting temperature data for two different sites over the same time
period which I have downloaded from a university weather station data
archive.
I am using the following code to create the plot
plot ( x = TEMP3[,"TIME"], y = TEMP3[,"TEMP"], type = "p", col =