I would like to compute a graph that tells me the increasing nº of species I am recording thorugh time, preferably with ggplot and geom_line. So it would be something like: the first day I had one species, day 1 equals 1 species. 2nd day I detected 2 new species, day 2 should equal 3 species. If on day 5 I detected another new species, day five should equal 4 species, and so on.
It's probably an easy thing but couldn't find the way to an example within the forum, probably because I am not using the right words. What I would like from my data would be something like (don't take numbers as reference, my total number of species is only 15, no 52 like in this plot!):
You can use this subset of my dataset as a reproducible example:
dataset <- structure(list(date = structure(c(18496, 18496, 18497, 18497,
18498, 18498, 18498, 18499, 18499, 18500, 18501, 18504, 18505,
18505, 18506, 18506, 18506, 18506, 18506, 18507, 18507, 18507,
18507, 18507, 18509, 18483, 18484, 18484, 18486, 18486, 18487,
18487, 18488, 18488, 18489, 18490, 18490, 18492, 18493, 18494,
18519, 18519, 18520, 18518, 18518, 18518, 18496, 18496, 18496,
18499, 18500, 18501, 18504, 18506, 18506, 18506, 18506, 18508,
18484, 18486, 18490, 18491, 18491, 18492, 18494, 18495, 18482,
18484, 18486, 18486, 18486, 18486, 18496, 18498, 18499, 18501,
18504, 18505, 18507, 18507, 18509, 18482, 18483, 18484, 18486,
18487, 18488, 18488, 18488, 18489, 18489, 18490, 18492, 18493,
18495, 18498, 18499, 18504, 18504, 18504, 18505, 18505, 18506,
18506, 18507, 18507, 18507, 18507), class = "Date"), speciesname = c("Grey Heron",
"Grey Heron", "Common Sandpiper", "Grey Heron", "Green Sandpiper",
"Grey Heron", "Greater Flamingo", "Grey Heron", "Night Heron",
"Night Heron", "Common Sandpiper", "Grey Heron", "Common Sandpiper",
"Grey Heron", "Grey Heron", "Grey Heron", "Grey Heron", "Grey Heron",
"Dotterel", "Grey Heron", "Grey Heron", "Ortolan Bunting", "Ortolan Bunting",
"Spotted Flycatcher", "Grey Heron", "Grey Heron", "Grey Heron",
"Nightjar", "Grey Heron", "Green Sandpiper", "Common Sandpiper",
"Grey Heron", "Grey Heron", "Grey Heron", "Snipe", "Common Sandpiper",
"Common Sandpiper", "Grey Heron", "Night Heron", "Dunlin", "Snipe",
"Grey Heron", "Grey Heron", "Grey Heron", "Grey Heron", "Grey Heron",
"Night Heron", "Night Heron", "Grey Heron", "Green Sandpiper",
"Robin", "Green Sandpiper", "Ortolan Bunting", "Grey Heron",
"Dotterel", "Whimbrel", "Dotterel", "Grey Heron", "Common Sandpiper",
"Grey Heron", "Common Sandpiper", "Grey Heron", "Night Heron",
"Night Heron", "Green Sandpiper", "Little Bittern", "Grey Heron",
"Common Sandpiper", "Grey Heron", "Grey Heron", "Night Heron",
"Grey Heron", "Ortolan Bunting", "Common Sandpiper", "Grey Heron",
"Night Heron", "Night Heron", "Grey Heron", "Grey Heron", "Grey Heron",
"Grey Heron", "Common Sandpiper", "Grey Heron", "Grey Heron",
"Grey Heron", "Western Swamphen", "Common Sandpiper", "Grey Heron",
"Night Heron", "Grey Heron", "Whimbrel", "Greater Flamingo",
"Night Heron", "Grey Heron", "Grey Heron", "Grey Heron", "Grey Heron",
"Night Heron", "Ortolan Bunting", "Night Heron", "Night Heron",
"Night Heron", "Common Sandpiper", "Grey Heron", "Night Heron",
"Grey Heron", "Night Heron", "Grey Heron")), class = c("tbl_df",
"tbl", "data.frame"), row.names = c(NA, -108L))
Thanks a lot!!






