With ‘mindr’ you can draw a mind map in markdown syntax, or start a markdown document from a mind map!
mindr is an R package which converts markdown (.md) or rmarkdown (.Rmd) files to mind maps (.mm), and vice versa. Mind map files (.mm) can be opened by or imported to common mindmap software such as the desktop software ‘FreeMind’and ‘XMind’, or the online webware ‘mindmeister’.
# stable version:
install.packages("mindr")
# or development version:
devtools::install_github("pzhaonet/mindr")
Run:
then you will get a demo mind map file mindr.mm
in the working directory (getwd()
). Open it with any mind-map (brainstorm) software, and you will get a mind map.
To create a mind map from your own markdown files, create a folder named mm
in the working directory (getwd()
), and drop some markdown or rmarkdown files into mm/
. Run:
md2mm()
Plenty of cross-platform mindmap software suits are available (see the list), among which freemind and Xmind are highly recommended. If you would not like to install any of them, you could open the .mm
file with the online webware ‘mindmeister’ in your web browser.
If you don’t know what is markdown, here is a demo file.
Actually this is a new way to draw a mind map!
Run:
then you will get a demo markdown file mindr.md
in the working directory (getwd()
).
To create a markdown file from your own mind map files, create a folder named mm
in the working directory (getwd()
), and drop some .mm files into mm/
. Run:
mm2md()
Run:
example(markmap)
then you will see a demo interactive mind map in the viewer of your R session.
More themes can be seen if you run:
example(markmapOption)
To create your own interactive mind map, create a folder named mm
in the working directory (getwd()
), and drop some .mm files into mm/
. Run:
markmap()
Run:
then you will get a demo outline file outline.md
in the working directory (getwd()
).
To extract the outline from your own markdown files, create a folder named mm
in the working directory (getwd()
), and drop some markdown or rmarkdown files into mm/
. Run:
outline()
dir2()
for creating mindmaps from folder structure.example(markmap)
.