mindr is an R package that can convert a markdown file or multiple markdown files, such as steem posts, into one mindmap. mindr can also convert a mindmap into a markdown file, which can be a good start of your post. A brief introduction can be found in one of my previous posts: mindr: an R package that creates a markdown post out of a mind map. Thanks to the support from utopian.io!
- What feature(s) did you add?
Weeks ago, a user asked me if mindr can create mindmaps out of tibble dataframes. After a lot of tests and efforts, now new features have been brought into the version 1.1.1: mindr can create mindmaps out of tibble dataframes.
Here is an example:
# firstly install the newest version of mindr
devtools::install_github("pzhaonet/mindr")
# load the package
library(mindr)
# a data example. suppose et2 is a column of a tibble dataframe
et2 <- c("/Root name", "/Path A", "/Path A/Product A", "/Path A/Product A/Process A",
"/Path A/Product A/Process A/Step A", "/Path A/Product A/Process A/Step A/Record 1",
"/Path A/Product A/Process A/Step A/Record 1/Analyses",
"/Path A/Product A/Process A/Step A/Record 1/Analyses/Object 1",
"/Path A/Product A/Process A/Step A/Record 1/Analyses/Object 1/Type: data source",
"/Path A/Product A/Process A/Step A/Record 1/Analyses/Object 1/Version: 3",
"/Path A/Product A/Process A/Step A/Record 1/Analyses/Object 2",
"/Path A/Product A/Process A/Step A/Record 1/Analyses/Object 3",
"/Path A/Product A/Process A/Step A/Record 1/Setup Parts",
"/Path A/Product A/Process A/Step A/Record 1/Setup Parts/Par 1",
"/Path A/Product A/Process A/Step A/Record 1/Setup Parts/Par 2",
"/Path A/Product A/Process A/Step A/Record 1/Setup Parts/Par 3",
"/Path B", "/Path C")
# convert the data into a mindmap
tree2mm(et2)
Then the users get a mindmap file "mindr.mm". Open it with any mindmap software, such as XMind:
- How did you implement it/them?
Link to relevant lines in the code on GitHub is here.
I added a function tree2mm()
, which extracts the titles from the tibble dataframe, and decides which levels they belong to. With the title and level information, it can be converted correctly into a mindmap.
Have fun!
Posted on Utopian.io - Rewarding Open Source Contributors