ggplot-rs 0.9.0

A Rust implementation of ggplot2's Grammar of Graphics
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::data::DataFrame;

use super::{Position, PositionParams};

/// No position adjustment.
pub struct PositionIdentity;

impl Position for PositionIdentity {
    fn compute(&self, _data: &mut DataFrame, _params: &PositionParams) {
        // Passthrough
    }

    fn name(&self) -> &str {
        "identity"
    }
}