I am trying to plot a treemap. I have installed all the necessary packages:
install.packages("ggplot2")
install.packages("reshape2")
install.packages("plyr")
install.packages("devtools")
I am running the first part of my code fine:
library(treemapify)
library(devtools)
treeMapCoordinates <- treemapify(df,
area = "MMR_Count",
fill = "MMR_Count",
label = "Business",
group = "Year")
here is where the error occurs:
treeMapPlot <- ggplotify(treeMapCoordinates)
This is the error message:
Error in ggplotify(treeMapCoordinates) : could not find function "ggplotify"
Where am I making a mistake?
ggplotifywhich shows it is a function from the packagetreemapify. rdocumentation.org/packages/treemapify/versions/0.2.2/topics/… - Jack Brookesgeom_treemap- user20650