It seems like you want barplot(prop.table(table(animals)))
:
However, this is not a histogram.
More Related Contents:
- R histogram: Change label “frequency” to “Fréquence”
- How to plot two histograms together in R?
- Fitting a density curve to a histogram in R
- How to force R to use a specified factor level as reference in a regression?
- Overlay normal curve to histogram in R
- Scatterplot with marginal histograms in ggplot2
- Overlay histogram with density curve
- Extract data from a ggplot
- Histogram with Logarithmic Scale and custom breaks
- Merge and Perfectly Align Histogram and Boxplot using ggplot2
- read.csv doesn’t seem to detect factors in R 4.0.0
- Understanding dates and plotting a histogram with ggplot2 in R
- Plotting with ggplot2: “Error: Discrete value supplied to continuous scale” on categorical y-axis
- Exact number of bins in Histogram in R
- Interpretation of ordered and non-ordered factors, vs. numerical predictors in model summary
- R error “sum not meaningful for factors”
- Add extra level to factors in dataframe
- Normalizing y-axis in histograms in R ggplot to proportion
- One-Hot Encoding in [R] | Categorical to Dummy Variables [duplicate]
- Different breaks per facet in ggplot2 histogram
- How to align the bars of a histogram with the x axis?
- R – emulate the default behavior of hist() with ggplot2 for bin width
- How to plot multiple stacked histograms together in R?
- Creating a density histogram in ggplot2?
- How to make variable bar widths in ggplot2 not overlap or gap
- Use hist() function in R to get percentages as opposed to raw frequencies
- Normalizing y-axis in histograms in R ggplot to proportion by group
- Calculating peaks in histograms or density functions
- Generating Multiple Plots in ggplot by Factor
- Remove quotes from a character vector in R