qtpaint (version 1.1.0)

qplotView: Plot view

Description

An extension of QGraphicsView with special functionality for plotting statistical graphics.

Usage

qplotView(scene, parent, rescale=c("geometry", "transform", "none"), opengl=TRUE)

Arguments

scene
The scene, a QGraphicsScene
parent
The parent QObject, usually a QWidget to contain the view
rescale
The rescale mode, see details
opengl
If TRUE, use OpenGL, otherwise the software driver

Value

  • A C++ PlotView object

Details

The PlotView class extends QGraphicsView to add two new features, from the user perspective. First, it automates rescaling when the widget is resized. There are three rescale modes: geometry, transform and none:

[object Object],[object Object],[object Object]

The other feature is the overlay scene: a separate scene that is fixed to the geometry of the viewport. It is always shown over the primary scene and it is stationary across transformations and scrolling of the viewport. This is useful for overlaying guides on a plot in a fixed position, like the axes in GGobi. Call the overlay method on a plot view instance to obtain the overlay scene and manipulate it directly.