Exemple #1
0
vp = grid.viewport(**{'layout.pos.col': 1, 'layout.pos.row': 1})
#-- ggplot2geombin2d-begin
gp = ggplot2.ggplot(dataf_rnorm)

pp = (gp + ggplot2.aes_string(x='value', y='other_value') +
      ggplot2.geom_bin2d() + ggplot2.ggtitle('geom_bin2d'))
pp.plot(vp=vp)
#-- ggplot2geombin2d-end

vp = grid.viewport(**{'layout.pos.col': 2, 'layout.pos.row': 1})
#-- ggplot2geomdensity2d-begin
gp = ggplot2.ggplot(dataf_rnorm)

pp = (gp + ggplot2.aes_string(x='value', y='other_value') +
      ggplot2.geom_density2d() + ggplot2.ggtitle('geom_density2d'))
pp.plot(vp=vp)
#-- ggplot2geomdensity2d-end

vp = grid.viewport(**{'layout.pos.col': 3, 'layout.pos.row': 1})
#-- ggplot2geomhexbin-begin
gp = ggplot2.ggplot(dataf_rnorm)

pp = (gp + ggplot2.aes_string(x='value', y='other_value') +
      ggplot2.geom_hex() + ggplot2.ggtitle('geom_hex'))
pp.plot(vp=vp)
#-- ggplot2geomhexbin-end

grdevices.dev_off()

grdevices.png('../../_static/graphics_ggplot2geomboxplot.png',
Exemple #2
0
gp = ggplot2.ggplot(dataf_rnorm)

pp = gp + \
     ggplot2.aes_string(x='value', y='other_value') + \
     ggplot2.geom_bin2d() + \
     ggplot2.ggtitle('geom_bin2d')
pp.plot(vp=vp)
#-- ggplot2geombin2d-end

vp = grid.viewport(**{'layout.pos.col': 2, 'layout.pos.row': 1})
#-- ggplot2geomdensity2d-begin
gp = ggplot2.ggplot(dataf_rnorm)

pp = gp + \
     ggplot2.aes_string(x='value', y='other_value') + \
     ggplot2.geom_density2d() + \
     ggplot2.ggtitle('geom_density2d')
pp.plot(vp=vp)
#-- ggplot2geomdensity2d-end

vp = grid.viewport(**{'layout.pos.col': 3, 'layout.pos.row': 1})
#-- ggplot2geomhexbin-begin
gp = ggplot2.ggplot(dataf_rnorm)

pp = gp + \
     ggplot2.aes_string(x='value', y='other_value') + \
     ggplot2.geom_hex() + \
     ggplot2.ggtitle('geom_hex')
pp.plot(vp=vp)
#-- ggplot2geomhexbin-end
Exemple #3
0
gp = ggplot2.ggplot(dataf_rnorm)

pp = gp + \
     ggplot2.aes_string(x='value', y='other_value') + \
     ggplot2.geom_bin2d() + \
     ggplot2.opts(title =  'geom_bin2d')
pp.plot(vp = vp)
#-- ggplot2geombin2d-end

vp = grid.viewport(**{'layout.pos.col':2, 'layout.pos.row': 1})
#-- ggplot2geomdensity2d-begin
gp = ggplot2.ggplot(dataf_rnorm)

pp = gp + \
     ggplot2.aes_string(x='value', y='other_value') + \
     ggplot2.geom_density2d() + \
     ggplot2.opts(title =  'geom_density2d')
pp.plot(vp = vp)
#-- ggplot2geomdensity2d-end

vp = grid.viewport(**{'layout.pos.col':3, 'layout.pos.row': 1})
#-- ggplot2geomhexbin-begin
gp = ggplot2.ggplot(dataf_rnorm)

pp = gp + \
     ggplot2.aes_string(x='value', y='other_value') + \
     ggplot2.geom_hex() + \
     ggplot2.opts(title =  'geom_hex')
pp.plot(vp = vp)
#-- ggplot2geomhexbin-end