All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.org.jetbrains.letsPlot.intern.layer.MarginalLayer.kt Maven / Gradle / Ivy

There is a newer version: 4.9.2
Show newest version
/*
 * Copyright (c) 2022. JetBrains s.r.o.
 * Use of this source code is governed by the MIT license that can be found in the LICENSE file.
 */

package org.jetbrains.letsPlot.intern.layer

import org.jetbrains.letsPlot.intern.Layer
import org.jetbrains.letsPlot.intern.Options

internal class MarginalLayer(
    geomLayer: Layer,
    marginalMapping: Options,
    private val marginalParameters: Options
) : Layer(
    mapping = marginalMapping + geomLayer.mapping,
    data = geomLayer.data,
    geom = geomLayer.geom,
    stat = geomLayer.stat,
    position = geomLayer.position,
    showLegend = geomLayer.showLegend,
    sampling = geomLayer.sampling,
    tooltips = geomLayer.tooltips,
    labels = null,
    orientation = geomLayer.orientation
) {
    private val allGeomLayerParameters = geomLayer.seal()

    override fun seal() = marginalParameters + allGeomLayerParameters
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy