Displaying 6 results from an estimated 6 matches for "mlabs".
Did you mean:
labs
2009 Oct 17
2
Putting names on a ggplot
...r[,1])
names(year) <- c('month','days','year','temps', "duration")
month.days <- as.vector(table(year[,1]))
months <- rep(month.name[1:12], month.days)
month.counts <- cumsum(as.vector( table(year[,1])))
namposts <- c(1, month.counts[1:11])
mlabs <- month.name[1:12]
temprange <- range(year$temps, na.rm=TRUE)
p <- ggplot(year, aes(duration, temps, colour=months)) + geom_line() +
opts(legend.position = "none", title="Yearly temperatures",
axis.text.x = theme_blank(), axis.ticks = theme_blank())
p...
2010 Feb 28
1
ggplot 'annotate problem' again.
...te(). However I apparently did not update the graph file and,now, when I go back to the thread and try to use Stefan's solution it does not seem to work although I am sure that it did then.
The problem arises at:
> p + annotate("text", x=namposts+2.5, y = temprange[2], label= mlabs, size=2.5, colour='black', hjust = 0, vjust = 0)
Error: When _setting_ aesthetics, they may only take one value. Problems: label
I want the names of the months along the top of the graph (one month per division).It appears that I am being told that the label can only have one value. mla...
2009 Oct 09
1
Placing text in a ggplot
.... Can anyone suggest what I am doing wrong. Data set is below code.
Thanks.
Code
=========================================================================
line.count <- c(1,cumsum(as.vector((table(year$monthnum)))))
namposts <- line.count[1:12]
temprange <- range(year[,4], na.rm=TRUE)
mlabs <- month.name[1:12]
p <- ggplot(year, aes(duration, temps, colour=month)) + geom_line() +
ylab("Temperature (C)") + xlab("Mean Daily Temperatures") +
opts(legend.position = "none", title="Ottawa, 2008",
axis.text.x = theme_blank(...
2008 Nov 04
4
fine grain tick marks for zoo plots
Dear R Users,
I am trying to get plot.zoo to place monthy tickmarks/labels for a time
series which spans daily data going back a bit over a year. Right now, I
am getting only one tick mark on the x-axis for the beginning of 2008. How
can I force plot.zoo to place more regular x-axis tick marks on a monthly
basis ?
Thanks in advance,
Tolga
Generally, this communication is for informational
2003 Jan 24
4
Problems for 13 year old
I would like to teach some scientific/statistical computing to my 13
year old nephew and was considering using R for this. He has a Mac G3
OS 9.1.
I am looking for ideas for problems that would be interesting and
motivating for someone that age. I recently taught him the basics of
HTML and noticed that he particularly was intrigued by the ability to
change colors; thus, perhaps problems
2003 Dec 02
2
IPv4-only networks via IPv6-only network
Hello all,
I would like to connect two IPv4-only networks through global IPv6-only
network with tinc.
Could anyone tell me how to configure tinc.conf and the other config files?
Thanks in advance,
Ichiro
Tinc: Discussion list about the tinc VPN daemon
Archive: http://mail.nl.linux.org/lists/
Tinc site: http://tinc.nl.linux.org/