rstudio – Plot and table in R-studio
I want to make a model and plot that shows how long it takes for salmon lice to lay eggs and how the time differ between wild and farmed salmon lices.
Then I want to make a table or paragraph that uses the plot.
I tried to use Phind to make the plot. But the codes gave me two straight columns in the plot.
here is the codes:
model <- glm(daysPI ~ status + exp + origin + tank2 + tank, data=data, family=poisson())
library(ggplot2)
ggplot(data, aes(x=status, y=daysPI, color=exp)) + geom_point() +
geom_smooth(method="glm", method.args=list(family="poisson"), se=FALSE) +
labs(x="Status", y="Days to Start Laying Eggs", color="Experiment Room")`
Read more here: Source link
