Keng-Chi Chang
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
      • No invitee
    • Publish Note

      Publish Note

      Everyone on the web can find and read all notes of this public team.
      Once published, notes can be searched and viewed by anyone online.
      See published notes
      Please check the box to agree to the Community Guidelines.
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
No invitee
Publish Note

Publish Note

Everyone on the web can find and read all notes of this public team.
Once published, notes can be searched and viewed by anyone online.
See published notes
Please check the box to agree to the Community Guidelines.
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Blogs and Visualizations This page collects some resources to help you build your visualization output (blogs or webpages summarizing and demonstrating the key takeaways of your project). ## Some examples You'll see that you need three main components: A title, some (but not too many) main figures, and some written explanations. - [Race & Intergenerational Mobility](https://www.nytimes.com/interactive/2018/03/19/upshot/race-class-white-and-black-men.html) - [COVID-19 Projections Using Machine Learning](https://covid19-projections.com) - [State and National Poll Aggregation](https://pkremp.github.io/report.html) - [The Universe of Miles Davis](https://pudding.cool/2017/03/miles/index.html) In general, the figures should be self-explanatory. A random reader of your website should be able to get the main point of your project, and they will learn more by reading the text. You can also decide whether you would like your visualizations to be static or interactive. Static visualizations are easier to embed in your blog, while interactive ones are a bit more fun and engaging to the readers (but don't overuse them since you risk confusing the reader if it's too complicated). ## Build your own website / blog There are several ways you can build and host your own website / blog for free. One easy and popular way nowadays is via Github Pages. You can simply follow the few steps in [this guide](https://pages.github.com) to create your own github pages. ## Static visualizations In principle, if you already saved your plots in static formats (svg, png, jpg, etc), you can add them to your github pages repo, edit the htmls of your github pages (ex. `index.html`), and push the repo to Github. The figure will them show up in `http://username.github.io/repository`. There are also some simpler ways to deploy your visualizations. If you mainly work with Jupyter Notebook, you can: - Create a notebook specifically for visualization - Make the plots, add the texts explaining the project - Convert the notebook into html in the command line (use `--no-input` to hide the code cells) ``` $ jupyter nbconvert --to html --no-input NOTEBOOK-NAME.ipynb``` - Copy the resulting `NOTEBOOK-NAME.html` to your visualization Github pages repo. Rename it to `index.html`. Push it to Github then your rendered notebook will show up on `http://username.github.io/repository`. If you work with Rmarkdown notebooks, you can: - Create a notebook specifically for visualization - Make the plots, add the texts explaining the project - [Convert the notebook into html](https://bookdown.org/yihui/rmarkdown/html-document.html) - Copy the resulting html to your visualization Github pages repo. Rename it to `index.html`. Push it to Github then your rendered notebook will show up on `http://username.github.io/repository`. - Alternatively, you can also create your whole blog / website / Github pages in R using the [blogdown](https://bookdown.org/yihui/blogdown/github-pages.html) package and generate everything within R. ## Interactive Visualizations You will need some additional libraries in Python or R to generate interactive plots. ### Python / Jupyter Notebook - [Plotly](https://plotly.com/python/): Most popular and easy to use, but a bit clumsy - [mpld3](https://mpld3.github.io/): Based on D3.js and matplotlib - [Altair](https://altair-viz.github.io/): Based on Vega-Lite - [Bokeh](https://docs.bokeh.org/en/latest/index.html): Extensive plotting capabilities, explore their example gallery In general, interactive visualizations won't work completely on your (static) Github pages. Some packages would provide ways that you can embed `iframe` in your Github pages (for example, see this guide for [Plotly](https://towardsdatascience.com/how-to-create-a-plotly-visualization-and-embed-it-on-websites-517c1a78568b)) so that you can see your interactive visualizations on your website. ### R / Rmarkdown - [htmlwidgets](http://www.htmlwidgets.org/showcase_plotly.html): R functions that return JavaScript visualizations (ex. Plotly) - [Shiny](https://shiny.rstudio.com/tutorial/): Builds interactive web apps powered by R If you work in R, this [online book](https://plotly-r.com/saving.html) will be useful for publishing interactive plots. ### D3.js If you would like to take full control of your interactive visualization, one popular way is to write it in d3.js. There's recently some free services devoted to creating collaborative notebooks specifically for d3.js visualizations: [Observable](https://observablehq.com/demo). See this [example](https://observablehq.com/@neocartocnrs/49394-deaths-in-migration-in-europes-neighbourhood-1993-20?collection=@neocartocnrs/migrations). After creating your notebook in Observable, you can also embed them into your Github pages. See this [demo](https://vakila.github.io/observable-demo/embeds.html) and this [guide](https://observablehq.com/@observablehq/introduction-to-embedding).

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template is not available.
Upgrade
All
  • All
  • Team
No template found.

Create custom template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

How to use Slide mode

API Docs

Edit in VSCode

Install browser extension

Get in Touch

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Upgrade to Prime Plan

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

No updates to save
Compare with
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Upgrade

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully