예제 #1
0
        public override IEnumerable <Argument> GetArguments()
        {
            List <Argument> args = new List <Argument>();

            args.Add(ArgumentHelper.ArgumentFactory(nameof(Response), Response));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(ResponseTransformation), ResponseTransformation));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(XAxis), XAxis));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(XAxisTransformation), XAxisTransformation));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(FirstCatFactor), FirstCatFactor));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(SecondCatFactor), SecondCatFactor));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(StyleType), StyleType.ToString()));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(DisplayLegend), DisplayLegend));

            args.Add(ArgumentHelper.ArgumentFactory(nameof(XAxisMin), XAxisMin));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(XAxisMax), XAxisMax));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(YAxisMin), YAxisMin));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(YAxisMax), YAxisMax));


            args.Add(ArgumentHelper.ArgumentFactory(nameof(SEMPlotIncludeData), SEMPlotIncludeData));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(MainTitle), MainTitle));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(XAxisTitle), XAxisTitle));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(YAxisTitle), YAxisTitle));

            args.Add(ArgumentHelper.ArgumentFactory(nameof(XAxisLevelsOrder), FixFactorOrdering(XAxisLevelsOrder)));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(FirstCatFactorLevelsOrder), FixFactorOrdering(FirstCatFactorLevelsOrder)));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(SecondCatFactorLevelsOrder), FixFactorOrdering(SecondCatFactorLevelsOrder)));

            args.Add(ArgumentHelper.ArgumentFactory(nameof(ScatterplotSelected), ScatterplotSelected));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(LinearFitSelected), LinearFitSelected));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(JitterSelected), JitterSelected));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(BoxplotSelected), BoxplotSelected));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(BoxplotOptions), BoxplotOptions));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(ErrorBarPlotSelected), ErrorBarPlotSelected));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(SEMType), SEMType.ToString()));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(ErrorBarType), ErrorBarType.ToString()));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(HistogramSelected), HistogramSelected));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(NormalDistSelected), NormalDistSelected));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(CaseProfilesPlotSelected), CaseProfilesPlotSelected));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(CaseIDFactor), CaseIDFactor));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(ShowCaseIDsInLegend), ShowCaseIDsInLegend));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(ReferenceLine), ReferenceLine));

            return(args);
        }
예제 #2
0
        public override string GetCommandLineArguments()
        {
            ArgumentFormatter argFormatter = new ArgumentFormatter();
            StringBuilder     arguments    = new StringBuilder();

            //X-Axis variable
            arguments.Append(" " + argFormatter.GetFormattedArgument(XAxis, true)); //4

            //X-Axis transformation
            arguments.Append(" " + argFormatter.GetFormattedArgument(XAxisTransformation, false)); //5

            //Response variable
            arguments.Append(" " + argFormatter.GetFormattedArgument(Response, true)); //6

            //Response transformation
            arguments.Append(" " + argFormatter.GetFormattedArgument(ResponseTransformation, false)); //7

            //1st cat factor
            arguments.Append(" " + argFormatter.GetFormattedArgument(FirstCatFactor, true)); //8

            //2nd cat factor
            arguments.Append(" " + argFormatter.GetFormattedArgument(SecondCatFactor, true)); //9

            //Graph type
            arguments.Append(" " + argFormatter.GetFormattedArgument(StyleType.ToString(), false)); //10

            //Main title
            arguments.Append(" " + argFormatter.GetFormattedArgument(MainTitle, false)); //11

            //X-Axis title
            arguments.Append(" " + argFormatter.GetFormattedArgument(XAxisTitle, false)); //12

            //Y Axis title
            arguments.Append(" " + argFormatter.GetFormattedArgument(YAxisTitle, false)); //13


            //XAxisLevelsOrder
            arguments.Append(" " + argFormatter.GetFormattedArgument(FixFactorOrdering(XAxisLevelsOrder), false)); //14

            //FirstCatFactorLevelsOrder
            arguments.Append(" " + argFormatter.GetFormattedArgument(FixFactorOrdering(FirstCatFactorLevelsOrder), false)); //15

            //SecondCatFactorLevelsOrder
            arguments.Append(" " + argFormatter.GetFormattedArgument(FixFactorOrdering(SecondCatFactorLevelsOrder), false)); //16


            //Scatterplot
            arguments.Append(" " + argFormatter.GetFormattedArgument(ScatterplotSelected)); //17

            //Linear plot
            arguments.Append(" " + argFormatter.GetFormattedArgument(LinearFitSelected)); //18

            //Jitter
            arguments.Append(" " + argFormatter.GetFormattedArgument(JitterSelected)); //19

            //Boxplot
            arguments.Append(" " + argFormatter.GetFormattedArgument(BoxplotSelected)); //20

            //Outliers
            arguments.Append(" " + argFormatter.GetFormattedArgument(BoxplotOptions)); //21

            //SEM Plot
            arguments.Append(" " + argFormatter.GetFormattedArgument(ErrorBarPlotSelected)); //22

            //Column plot type
            arguments.Append(" " + argFormatter.GetFormattedArgument(SEMType.ToString(), false));      //23

            arguments.Append(" " + argFormatter.GetFormattedArgument(ErrorBarType.ToString(), false)); //24

            //Histogram plot
            arguments.Append(" " + argFormatter.GetFormattedArgument(HistogramSelected)); //25

            //Normal distribution fit
            arguments.Append(" " + argFormatter.GetFormattedArgument(NormalDistSelected)); //26

            //Case profiles plot
            arguments.Append(" " + argFormatter.GetFormattedArgument(CaseProfilesPlotSelected)); //27

            //Case ID Factor
            arguments.Append(" " + argFormatter.GetFormattedArgument(CaseIDFactor, true)); //28

            //Case ID Factor
            arguments.Append(" " + argFormatter.GetFormattedArgument(ShowCaseIDsInLegend)); //29

            //Reference Line
            arguments.Append(" " + argFormatter.GetFormattedArgument(ReferenceLine.ToString(), false)); //30

            //Legend
            arguments.Append(" " + argFormatter.GetFormattedArgument(DisplayLegend)); //31

            //SEM Plot include data
            arguments.Append(" " + argFormatter.GetFormattedArgument(SEMPlotIncludeData)); //32


            //XAxisMin
            arguments.Append(" " + argFormatter.GetFormattedArgument(XAxisMin)); //33

            //XAxisMax
            arguments.Append(" " + argFormatter.GetFormattedArgument(XAxisMax)); //34

            //YAxisMin
            arguments.Append(" " + argFormatter.GetFormattedArgument(YAxisMin)); //35

            //YAxisMax
            arguments.Append(" " + argFormatter.GetFormattedArgument(YAxisMax)); //36

            return(arguments.ToString().Trim());
        }