% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/maxent_plots.R
\name{maxent_plot_variable_importance}
\alias{maxent_plot_variable_importance}
\title{Write a Variable Importance Bar Chart PNG}
\usage{
maxent_plot_variable_importance(
  contributions_df,
  perm_imp_df,
  species,
  output_dir
)
}
\arguments{
\item{contributions_df}{A data.frame with columns \code{name} and
\code{contribution} (from \code{\link{maxent_percent_contribution}}).}

\item{perm_imp_df}{A data.frame with columns \code{name} and
\code{permutation_importance} (from
\code{\link{maxent_permutation_importance}}).}

\item{species}{Character: species name (used in the filename).}

\item{output_dir}{Character: directory under which a \code{plots/}
sub-directory will be created.}
}
\value{
Invisibly returns the path to the PNG file.
}
\description{
Creates a horizontal bar chart comparing percent contribution and
permutation importance for each environmental variable, replicating
\code{density/Runner.java::makeJackknifePlots()}.
}
\examples{
\donttest{
maxent_plot_variable_importance(contrib, perm_imp,
  species = "Sp1", output_dir = tempdir())
}
}
