If I have a data frame where a species occupies several rows with different
phases such as (both col's ar factors):
species,phase
Populus tremula,1
Populus tremula,2
Populus tremula,3
Calluna vulgaris,1
Calluna vulgaris,2
Betula alba,1
Betula alba,2
Betula alba,3
Primula veris,1
Primula veris,2
a
I was just thinking of a way to present data and if it is possible in R.
I have a data frame that looks as follows (this is just mockup data).
df
location,"species1","species2","species3","species4","species5"
"loc1",0.44,0.28,0.37,-0.24,0.41
"loc2",0.54,0.62,0.34,0.52,0.71
"loc3",-0.33,0.75,-0.
I was just wondering if anyone knows what could be the problem with my
exporting of plots.
Below is the error messages I get when trying to export my plots (all error
messages at the same time).
I do get a file produced which works but I don't know why these messages
appear. Doesn't matter if it i
I have a factor which is species and the variables are a few sites where this
species live.
When I plot:
plot(species.factor, minlatitudemaxlatitude)
the plot produced is automatically a boxplot which shows the range of the
species (which is what I want).
However, in the thin box which is produ
I have two vectors
min
0.2, 0.3, 0.6, 0.1
max
0.4,0.5,0.7,0.4
Is there a way to combine these two vector so that the values will be taken
from the vectors alternating so that I will get a new
minmaxminmaxminmax-vector?
minmax
0.2,0.4,0.3,0.5,0.6,0.7,0.1,0.4
Any help is much appreciated
--
Vi
OK, got it to work now, just messed up the ","' and ":". Thank you!
--
View this message in context:
http://r.789695.n4.nabble.com/referencing-last-row-in-a-column-tp2551645p2551721.html
Sent from the R help mailing list archive at Nabble.com.
__
R-he
Sorry, but now I understand what you're doing, and it works as a stand-alone
in the console! :)
But why doesn't it work in the xlim?
__
> pheno.dt$year[1]
[1] 1877
> pheno.dt$year[nrow(pheno.dt)]
[1] 1916
> plot(x,y, x
Thanks, but I have multiple entries for each year so the column reads:
year
1877
1877
1877
1877
1878
1878
1878
1878
1879
1879
1879
1879
So I need to pick out the year from the last row rather than just counting
rows.
--
View this message in context:
http://r.789695.n4.nabble.com/referencin
I am trying to set u a limit for my plot window according to the range of a
year column I have.
The first year in the range is just simply the first row, referred to as
data$year[1]. How can I find the last row in a similar way to set the last
year in the range?
What I want to accomplish is the f
I have a file that reads like this:
Species,Year,Julian_day
Alnus_glutinosa, 1873, 123
Sorbus_aucuparia, 1873, 122
(more species...)
Alnus_glutinosa, 1874, 134
Sorbus_aucuparia, 1874, 143
(more species and years)
Is there a way to plot this as julian day over years so that each species
g
10 matches
Mail list logo