# NOT RUN {
ryegrass.dr4pl <- dr4pl::dr4pl(Response ~ Dose, data = sample_data_1)
plot(ryegrass.dr4pl)
##Able to further edit plots
library(ggplot2) #needed to change color to green
ryegrass.dr4pl <- dr4pl::dr4pl(Response ~ Dose,
data = sample_data_1,
text.title = "Sample Data Plot")
a <- plot(ryegrass.dr4pl)
a + geom_point(color = "green", size = 5)
##Bring attention to outliers using parameter indices.outlier.
a <- dr4pl(Response ~ Dose,
data = drc_error_3,
method.init = "Mead",
method.robust = "absolute" )
plot(a, indices.outlier = c(90, 101))
##Change the plot title default with parameter text.title
ryegrass.dr4pl <- dr4pl::dr4pl(Response ~ Dose,
data = sample_data_1)
plot(ryegrass.dr4pl, text.title = "My New Dose Response plot")
##Change the labels of the x and y axis to your need
library(drc) #needed to load 'decontaminants' data set
d <- subset(decontaminants, group %in% "hpc")
e <- dr4pl(count~conc, data = d)
plot(e,
text.title = "hpc Decontaminants Plot",
text.x = "Concentration",
text.y = "Count")
# }
Run the code above in your browser using DataLab