Commit 12e1fbbf authored by akaljuvee's avatar akaljuvee

-

parent be9bfa6a
......@@ -38,6 +38,13 @@ class LinePlot(val root: Configurable) extends Rscript {
var title: Option[String] = config("title")
var removeZero: Boolean = config("removeZero", default = false)
//whether to use log scale for x and y axis
var xLog10: Boolean = false
var yLog10: Boolean = false
var xLog10AxisTicks: Seq[String] = Seq.empty
var xLog10AxisLabels: Seq[String] = Seq.empty
override def cmd = super.cmd ++
Seq("--input", input.getAbsolutePath) ++
Seq("--output", output.getAbsolutePath) ++
......@@ -47,7 +54,12 @@ class LinePlot(val root: Configurable) extends Rscript {
ylabel.map(Seq("--ylabel", _)).getOrElse(Seq()) ++
llabel.map(Seq("--llabel", _)).getOrElse(Seq()) ++
title.map(Seq("--title", _)).getOrElse(Seq()) ++
(if (removeZero) Seq("--removeZero", "true") else Seq())
(if (removeZero) Seq("--removeZero", "true") else Seq()) ++
(if (xLog10) Seq("--xLog10", "true") else Seq()) ++
(if (yLog10) Seq("--yLog10", "true") else Seq()) ++
(if (xLog10AxisTicks.nonEmpty) xLog10AxisTicks.+:("--xLog10Breaks") else Seq()) ++
(if (xLog10AxisTicks.nonEmpty) xLog10AxisLabels.+:("--xLog10Labels") else Seq())
}
object LinePlot {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment