get.ggplot.Rd 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/hypoAfrica.R
  3. \name{get.ggplot}
  4. \alias{get.ggplot}
  5. \title{Plot comparison of measured and reference fractions}
  6. \usage{
  7. get.ggplot(
  8. df,
  9. dfRef,
  10. var,
  11. timeVar = "visitid",
  12. doseVar = "dose",
  13. doseBreaks = base::c(60, 62, 100),
  14. doseLabels = base::c("60 Gy", "62 Gy", "all"),
  15. doseColors = base::c("red", "magenta", "blue"),
  16. timeBreaks = base::c(0, 1, 3, 4),
  17. timeLabels = base::c("beforeRT", "at20", "at3mo", "at12mo")
  18. )
  19. }
  20. \arguments{
  21. \item{df}{data frame of measured fractions}
  22. \item{dfRef}{data frame of reference fractions}
  23. \item{var}{target fraction variable}
  24. \item{timeVar}{variable measuring time}
  25. \item{doseVar}{variable for selecting datasets}
  26. \item{doseBreaks}{values to break plots to}
  27. \item{doseLabels}{labels for legend for breaks}
  28. \item{doseColors}{colors to use for different plots}
  29. \item{timeBreaks}{where time points are assigned}
  30. \item{timeLabels}{labels for time points}
  31. }
  32. \value{
  33. grob object with ggplot
  34. }
  35. \description{
  36. Plot comparison of measured and reference fractions
  37. }