Biplot Chart in JFreeChart
Biplot Chart in JFreeChart
Hi! Is there a way to generate a biplot in JFreeChart? I browsed the API and this forum for native support in JFreeChart for biplot but I wasn't able to find one.
Re: Biplot Chart in JFreeChart
Hi!
Currently (up to v1.0.14) there is no support for Biplots in JFreeChart. There is support for related ScatterPlots.
Feel free to implement Biplot support and contribute it back to JFreeChart
regards,
- martin
Currently (up to v1.0.14) there is no support for Biplots in JFreeChart. There is support for related ScatterPlots.
Feel free to implement Biplot support and contribute it back to JFreeChart
regards,
- martin
Re: Biplot Chart in JFreeChart
Having another thought brings up the following idea:
Scatter plots in JFreeChart use the XYDotRenderer on an XYPlot. You could probably create a biplot-chart by just adding another XYDataset and rendering it with a simple XYLineAndShapeRenderer.
hth,
- martin
PS: please let us know if it did work out.
Scatter plots in JFreeChart use the XYDotRenderer on an XYPlot. You could probably create a biplot-chart by just adding another XYDataset and rendering it with a simple XYLineAndShapeRenderer.
hth,
- martin
PS: please let us know if it did work out.
Re: Biplot Chart in JFreeChart
Hmm. Thanks. I'll try that method.
Re: Biplot Chart in JFreeChart
I'm stumped. The XYDataset class in JFreeChart only allows double values? Here is a snippet of the data I am concerned with:
I'm supposed to make a biplot from that. If I go about doing that using a scatter plot, I would have to separate Env and Gen into different plots initially.
Code: Select all
Env Gen Y
BH BOHOL PI AZU 1.344
CR CARIMAGU AZU 1.097
CV CAVINTI AZU 0.48375
Re: Biplot Chart in JFreeChart
That's right. If you want non-number values you would have to use a CategoryPlot with a CategoryAxis. You would probably use the ScatterRenderer for this, like shown in in the JFreeChart demo-collection (Miscellaneous/ScatterRendererDemo1).I'm stumped. The XYDataset class in JFreeChart only allows double values?
hth,
- martin
Re: Biplot Chart in JFreeChart
Here is a sample chart generated using R. Can anyone guide on how to do this using JFreeChart?