On Fri, Apr 17, 2009 at 2:07 PM, Paul Warren Simonin
wrote:
> Thank you all for your advice.
> I have received some good tips, but it was suggested I write back with a
> small simulated data set to better illustrate my needs. So, currently my
> data frame looks something like:
>
> ID (date) Temp
Looks to me that Holtman's solution was perfect:
> fdf <- read.table(textConnection(txt), header=T)
> fdf
IDdt Temp N.fish
1 2007061835456
2 2007061835765
3 2007061834567
4 2007061833876
5 2007061833888
6 2007061832111
7 200706184
Thank you all for your advice.
I have received some good tips, but it was suggested I write back
with a small simulated data set to better illustrate my needs. So,
currently my data frame looks something like:
ID (date) Temperature Number of fish
200706183 5 456
200706183
here is one way:
> mydata <- data.frame(observ=sample(1:10,20,TRUE), value=sample(1:6,20,TRUE))
>
> mydata
observ value
1 3 6
2 4 2
3 6 4
4 10 1
5 3 2
6 9 3
7 10 1
8 7 3
9 7 6
10 1 3
11 3 3
On Fri, Apr 17, 2009 at 9:59 AM, Paul Warren Simonin
wrote:
> Hello!
> Thanks for reading this request for assistance. I have a question regarding
> creating a histogram-like figure from data that are not currently in the
> correct format for the "hist" command.
> Specifically, my data have been
It would be easier if you were to make a data frame of fake values to
illustrate your point, so that we could just copy it into an R session
and see if we can't get it to work. So, a stab in the dark would to
look at ggplot2 specifically the hist argument in qplot and the
facets, the lattice packa
Hello!
Thanks for reading this request for assistance. I have a question
regarding creating a histogram-like figure from data that are not
currently in the correct format for the "hist" command.
Specifically, my data have been processed and are in a matrix with
columns containing the var
7 matches
Mail list logo