get.ggplot.Rd 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. nVar = "total",
  14. doseBreaks = base::c(60, 62, 100),
  15. doseLabels = base::c("60 Gy", "62 Gy", "all"),
  16. doseColors = base::c("red", "magenta", "blue"),
  17. timeBreaks = base::c(0, 1, 3, 4),
  18. timeLabels = base::c("beforeRT", "at20", "at3mo", "at12mo")
  19. )
  20. }
  21. \arguments{
  22. \item{df}{data frame of measured fractions}
  23. \item{dfRef}{data frame of reference fractions}
  24. \item{var}{target fraction variable}
  25. \item{timeVar}{variable measuring time}
  26. \item{doseVar}{variable for selecting datasets}
  27. \item{nVar}{variable where counts are stored}
  28. \item{doseBreaks}{values to break plots to}
  29. \item{doseLabels}{labels for legend for breaks}
  30. \item{doseColors}{colors to use for different plots}
  31. \item{timeBreaks}{where time points are assigned}
  32. \item{timeLabels}{labels for time points}
  33. }
  34. \value{
  35. grob object with ggplot
  36. }
  37. \description{
  38. Plot comparison of measured and reference fractions
  39. }