background preloader

JFreeChart

Facebook Twitter

JFreeChart: Combined Category Plot Demo 1 : Combined Category Plot Chart « Chart  Combining Plots. R makes it easy to combine multiple plots into one overall graph, using either the par( ) or layout( ) function. With the par( ) function, you can include the option mfrow=c(nrows, ncols) to create a matrix of nrows x ncols plots that are filled in by row. mfcol=c(nrows, ncols) fills in the matrix by columns. # 4 figures arranged in 2 rows and 2 columns attach(mtcars) par(mfrow=c(2,2)) plot(wt,mpg, main="Scatterplot of wt vs. mpg") plot(wt,disp, main="Scatterplot of wt vs disp") hist(wt, main="Histogram of wt") boxplot(wt, main="Boxplot of wt") click to view # 3 figures arranged in 3 rows and 1 column attach(mtcars) par(mfrow=c(3,1)) hist(wt) hist(mpg) hist(disp) The layout( ) function has the form layout(mat) where mat is a matrix object specifying the location of the N figures to plot. # One figure in row 1 and two figures in row 2 attach(mtcars) layout(matrix(c(1,1,2,3), 2, 2, byrow = TRUE)) hist(wt) hist(mpg) hist(disp) Relative widths are specified with numeric values.

JFreeChart: Overlaid XY Plot Demo 2 : Overlaid XY Plot Chart « Chart  Line Chart « Chart 

Passage en pdf avec itext

Jmvanel.free.fr/java/formation-ird3/jfreechart.pdf. JFreeChart: Line Chart Demo 6 : Line Chart « Chart