2 min read

[New Features on steemr] Diagrams in the follower shiny app!

Links: steemit.com, cnsteem.com, busy.org, steemdb.com, steemd.com



Brief Intro and curriculum

steemr’ is an open source R package for playing with Steem data in R environment. It is used to download, post process, analyze, and visualize Steem data on the basis of the powerful statistic power of R.

Previously on steemr:

New Features

What features did I add?

A comment by the utopian.io moderator mentioned that the wordings of both ‘followers but not following’, ‘following but not followers’ are confusing. Although they are the official callings that I cannot change, a diagram could help. Therefore, I added a Venn diagram into the sfollow()shiny app.

A Venn diagram shows all possible logical relations between a finite collection of different sets. It is usually a diagram which consists of multiple overlapping circles, each representing a set. In a Venn diagram of the follower report, the pink area indicates the number of the steemians who follow the given ID (followers), the blue the number of those who are followed by the given ID, and the purple the intersection. The figure below shows the Venn diagram of a certain ID.

Figure 1. Guess whose Venn diagram is this.

Besides, I also added three wordcloud diagrams to display the levels of the followers ranked by the follower number, post number, and vests. By moving the sliders, users can choose the top n followers displayed.

Figure 2. Wordclouds of the follower levels.

How did I implement them?

I added some user interface elements, including sliders, diagrams, and explanation texts, into the internal functions sfollow_ui() and sfollow_server() which are the UI function and server function for sfollow(). Each part of the functions are well documented. Other files were updated automatically by compilation.

Link to relevant lines in the code on GitHub can be found mainly in my latest commit (click to see the details):

GitHub Account