function view( viewer ) {
	/* eslint-disable no-invalid-this */
	var tmp = this.viewer;
	if ( arguments.length ) {
		// Temporarily set the viewer:
		this.viewer = viewer;
	}
	debug( 'Viewer: %s.', this.viewer );
	debug( 'Generating view...' );
	createView( this, this.viewer, this.render() );
	if ( arguments.length ) {
		// Restore the viewer:
		this.viewer = tmp;
	}
}
Generates a plot view.

@private
@param {string} viewer - plot viewer