Optimize a pedigree plot by rounding coordinates to reduce file size.
optimizePedigree(p, config = list(), plot_type = c("plotly", "static"))A plotly or ggplot object representing the pedigree plot.
A list of configuration parameters, including `value_rounding_digits`.
A string indicating the type of plot: "plotly" or "static". Default is "plotly". @return The optimized plot object with rounded coordinates. @keywords internal