Qubixity.net
  • AI is the Future
  • AI
  • AI Music
  • AI News
  • Art
  • Cadabra
    • Cartan structural equations and Bianchi identity
    • Einstein equations from a variational principle
  • Cities
  • Cosmology & Computing
  • Data Science
    • DS Articles
    • Life Expectancy
  • General Relativity & Quantum Cosmology
    • GR & QC Articles
  • Mathematica
    • Monte Carlo Intergration
  • RStudio
    • Quarto Cars
    • Quarto Cars v2
  • Science
    • Computer Science
  • Science Magazine
  • WordPress Blogging
    • CyberSEO
    • Divi AI
    • Namecheap
  • Privacy Policy
Select Page

“Visualizing the CP 1919 / PSR B1919+21 Dataset”

by jsendak | Jun 23, 2024 | DS Articles | 0 comments

"Visualizing the CP 1919 / PSR B1919+21 Dataset"

[This article was first published on pacha.dev/blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)


Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t.

If you like these contributions, please consider buying me a coffee.

About

I added the CP 1919 / PSR B1919+21 Dataset to my GitHub.

This dataset, found in one of my old external drives, corresponds to the famous plot from Radio Observations of the Pulse Profiles and Dispersion Measures of Twelve Pulsars (Craft, 1970). This is broadly known as the Joy Division’s plot from Unknown Pleasures. If you happen to know whom created the provided CSV file, please let me know so I can give proper credit.

The dataset contains “successive pulses from the first pulsar discovered, CP 1919, are here superimposed vertically. The pulses occur every 1.337 seconds. They are caused by rapidly spinning neutron star.” (The Cambridge Encyclopaedia of Astronomy, 1977)

Thanks to Scientific American, there is a complete explanation of the dataset and its origin.

Read

pulsar <- readr::read_csv("https://raw.githubusercontent.com/pachadotdev/cp1919/main/cp1919.csv")
Rows: 24000 Columns: 3
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
dbl (3): x, y, z

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
pulsar
# A tibble: 24,000 × 3
       x     y     z
   <dbl> <dbl> <dbl>
 1     1     1 -0.81
 2     2     1 -0.91
 3     3     1 -1.09
 4     4     1 -1
 5     5     1 -0.59
 6     6     1 -0.82
 7     7     1 -0.43
 8     8     1 -0.68
 9     9     1 -0.71
10    10     1 -0.27
# ℹ 23,990 more rows

Visualize

The Cambridge Encyclopaedia of Astronomy (1977)

library(ggplot2)
library(ggridges)

col1 <- "white"
col2 <- "black"

ggplot(pulsar, aes(x = x, y = y, height = z, group = y)) +
  geom_ridgeline(
    min_height = min(pulsar$z),
    scale = 0.2,
    linewidth = 0.5,
    fill = col1,
    colour = col2
  ) +
  scale_y_reverse() +
  theme_void() +
  theme(
    panel.background = element_rect(fill = col1),
    plot.background = element_rect(fill = col1, color = col1),
  )

The Nature of Pulsars (Scientific American, 1970)

col1 <- "#94cee1"
col2 <- "white"

ggplot(pulsar, aes(x = x, y = y, height = z, group = y)) +
  geom_ridgeline(
    min_height = min(pulsar$z),
    scale = 0.2,
    linewidth = 0.5,
    fill = col1,
    colour = col2
  ) +
  scale_y_reverse() +
  theme_void() +
  theme(
    panel.background = element_rect(fill = col1),
    plot.background = element_rect(fill = col1, color = col1),
  )

Joy Division’s Unknown Pleasures (1979)

col1 <- "black"
col2 <- "white"

ggplot(pulsar, aes(x = x, y = y, height = z, group = y)) +
  geom_ridgeline(
    min_height = min(pulsar$z),
    scale = 0.2,
    linewidth = 0.5,
    fill = col1,
    colour = col2
  ) +
  scale_y_reverse() +
  theme_void() +
  theme(
    panel.background = element_rect(fill = col1),
    plot.background = element_rect(fill = col1, color = col1),
  )

To leave a comment for the author, please follow the link and comment on their blog: pacha.dev/blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you’re looking to post or find an R/data-science job.


Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t.

Continue reading: CP 1919 / PSR B1919+21 Dataset

Insights and Future Implications of the CP 1919 / PSR B1919+21 Dataset

The author of the input text has contributed to the open-source community by adding the CP 1919 / PSR B1919+21 Dataset to their GitHub repository. This dataset is derived from the first pulsar ever discovered, CP 1919, and includes data on the pulsar’s successive pulses. Each pulse occurs roughly every 1.337 seconds, the result of the rapid spinning of the neutron star.

Value of Open-Source Data Visualizations

Three unique data visualizations using the ‘ggplot2’ and ‘ggridges’ libraries are showcased in the input text, each presenting the dataset in different color schemes. These visualizations not only help to explain the data but they also make the data accessible and understandable to a broader audience. This has significant long-term implications for data accessibility and opens up opportunities for more individuals and organizations to leverage this dataset and extract valuable insights.

Actionable Advice

1. Collaborate to Improve Data Attribution: The author found this dataset in one of their old external drives and it is not known who initially gathered the dataset into a CSV file. It could be beneficial for the open-source data community to collaborate on improving metadata and data lineage transparency, ensuring data creators and contributors are properly credited.

2. Advocate for Data Accessibility: Our understanding of universal phenomena can come from the most unexpected places – in this case, a pulsar discovered back in 1919. Advocates in the field should work on making more such datasets available, as they can play a pivotal role in enabling more discoveries.

3. Learn and Leverage R Programming: For those interested in data analysis, visualization, and science, it is advisable to learn how to interact with data using R programming language. The visuals generated with ‘ggplot2’ and ‘ggridges’ in this input testify to the power and flexibility that R can provide for visualizing complex data.

4. Explore Data Reuse for New Insights: The original intent behind creating a dataset may limit its use in that original context. But freely available datasets, like CP 1919 / PSR B1919+21, can be reused for a variety of other purposes. Creatives, data scientists, and researchers can repurpose such data providing fresh insights or contributing to the development of interdisciplinary applications.

Read the original article

Submit a Comment Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • “Gunpowder Birds: A Visual Study, 2018”
  • Creating Custom PowerPoints with {officer} in R
  • Navigating the Transition from PowerCenter: Considerations for Your Organization
  • Celebrating Global Impact: The .ORG Impact Awards
  • Analyzing Relationships in Social Networking Services: A Graph-Based Approach

Recent Comments

No comments to show.

Archives

  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • May 2023
  • March 2023
  • January 2023
  • December 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • May 2022
  • January 2022
  • October 2021
  • May 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020

Categories

  • AI
  • AI News
  • Art
  • ArXiv
  • Cities
  • Computer Science
  • Cosmology & Computing
  • CyberSEO
  • DS Articles
  • GR & QC Articles
  • Music
  • Namecheap
  • News
  • Science
  • Facebook
  • X
  • Instagram
  • RSS

Designed by Elegant Themes | Powered by WordPress