Displaying 3 results from an estimated 3 matches for "ploygon".
Did you mean:
logon
2004 Mar 07
1
Frequency ploygon help
I can't figure out how to get the x-axis to contain the category lables for
my frequency polygon. I'm also not sure if there is a more elegant
approach. Any insights on the labels?
I tried this:
#generate some pseudo data
x=c(sort(sample(1:1500,5)),sort(sample(1:1500,3),dec=T))
# assign names to the vector
2009 Dec 02
1
polygon graph
...quot;DP"))
g$fecha <- as.Date(g$fecha, format="%d/%m/%Y")
t<-g$fecha
st<-length(g$DP)
ft<-plot(t,g$DP,type="l",ylab="DP")
polygon(c(1, 1:st, st), c(0, g$USGDP, 0), col = "blue")
abline(h = 0, lwd = 1, col = "black")
If I ommit ploygon line the doc works properly (it plots a graph line).
But I want to colur the area below or over the line and the zero axis.
Can you guide or indicate because in this case polygon doesn?t work.
I attach the two files.
Thanks in advance for all.
-------------- next part --------------
31/03/194...
2004 Mar 09
0
Re: R-help Digest, Vol 13, Issue 8
...d')? (Jens Hainmueller)
> 8. Re: missing values (Peter Dalgaard)
> 9. RE: applying data generating function (Phineas Campbell)
> 10. Re: applying data generating function (Christophe Pallier)
> 11. Re: applying data generating function (Spencer Graves)
> 12. Frequency ploygon help (Robert W. Baer, Ph.D.)
> 13. Re: applying data generating function (Peter Dalgaard)
> 14. Re: drawing filled countries according to data using
> map('world')? (Ray Brownrigg)
> 15. Excel files (Grace Conlon)
> 16. drawing filled countries according to data...