public static void main(String[] args) {
		// TODO code application logic here
		try {
			String datafile = "/Users/Scooter/scripps/ngs/BLJ/E2197/Predictive Signatures/V$HSF_Q6-E2197 TTR.txt";

			SurvFitKM survFitKM = new SurvFitKM();

			SurvFitInfo si = survFitKM.process(datafile, "TIME", "STATUS", "WEIGHT", "MEAN", true);



			if (true) {

				KaplanMeierFigure kaplanMeierFigure = new KaplanMeierFigure();





				JFrame application = new JFrame();
				application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				application.add(kaplanMeierFigure);
				kaplanMeierFigure.setSize(500, 400);

				application.setSize(500, 400);         // window is 500 pixels wide, 400 high
				application.setVisible(true);

				ArrayList<String> titles = new ArrayList<String>();
				titles.add("Line 1");
				titles.add("line 2");
				kaplanMeierFigure.setSurvivalData(titles, si, null);

				ArrayList<String> figureInfo = new ArrayList<String>();
				//   figureInfo.add("HR=2.1 95% CI(1.8-2.5)");
				//   figureInfo.add("p-value=.001");
				kaplanMeierFigure.setFigureLineInfo(figureInfo);

				kaplanMeierFigure.savePNG("/Users/Scooter/Downloads/test.png");



			}



		} catch (Exception e) {
			e.printStackTrace();
		}
	}
public static void main ( String [ ] args ) { try { String datafile = "/Users/Scooter/scripps/ngs/BLJ/E2197/Predictive Signatures/V$HSF_Q6-E2197 TTR.txt" ; SurvFitKM survFitKM = new SurvFitKM ( ) ; SurvFitInfo si = survFitKM . process ( datafile , "TIME" , "STATUS" , "WEIGHT" , "MEAN" , true ) ; if ( true ) { KaplanMeierFigure kaplanMeierFigure = new KaplanMeierFigure ( ) ; JFrame application = new JFrame ( ) ; application . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; application . add ( kaplanMeierFigure ) ; kaplanMeierFigure . setSize ( 500 , 400 ) ; application . setSize ( 500 , 400 ) ; application . setVisible ( true ) ; ArrayList < String > titles = new ArrayList < String > ( ) ; titles . add ( "Line 1" ) ; titles . add ( "line 2" ) ; kaplanMeierFigure . setSurvivalData ( titles , si , null ) ; ArrayList < String > figureInfo = new ArrayList < String > ( ) ; kaplanMeierFigure . setFigureLineInfo ( figureInfo ) ; kaplanMeierFigure . savePNG ( "/Users/Scooter/Downloads/test.png" ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } }
@param args the command line arguments