Cookies help us display personalized product recommendations and ensure you have great shopping experience.

By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    image fx (67)
    Improving LinkedIn Ad Strategies with Data Analytics
    9 Min Read
    big data and remote work
    Data Helps Speech-Language Pathologists Deliver Better Results
    6 Min Read
    data driven insights
    How Data-Driven Insights Are Addressing Gaps in Patient Communication and Equity
    8 Min Read
    pexels pavel danilyuk 8112119
    Data Analytics Is Revolutionizing Medical Credentialing
    8 Min Read
    data and seo
    Maximize SEO Success with Powerful Data Analytics Insights
    8 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-25 SmartData Collective. All Rights Reserved.
Reading: Belated Gift: Make a Valentine’s Heart with R
Share
Notification
Font ResizerAa
SmartData CollectiveSmartData Collective
Font ResizerAa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Uncategorized > Belated Gift: Make a Valentine’s Heart with R
Uncategorized

Belated Gift: Make a Valentine’s Heart with R

DavidMSmith
DavidMSmith
2 Min Read
SHARE

If you haven’t sent your loved one a Valentine’s Day greeting yet, it’s not too late! Thanks to Guillermo Santos who pointed out an R script from Berkeley’s Concepts in Computing with Data course, I created the following Valentine’s Day card for my husband:

If you haven’t sent your loved one a Valentine’s Day greeting yet, it’s not too late! Thanks to Guillermo Santos who pointed out an R script from Berkeley’s Concepts in Computing with Data course, I created the following Valentine’s Day card for my husband:

Valentine
If you want to make one for your loved one, you can use the R code below (which I modified slightly from the original):

# Source: http://statistics.berkeley.edu/classes/s133/heart.r heart1 = function(name){ t = seq(0,60,len=100) plot(c(-8,8),c(0,20),type='n',axes=FALSE,xlab='',ylab='') x = -.01*(-t^2+40*t+1200)*sin(pi*t/180) y = .01*(-t^2+40*t+1200)*cos(pi*t/180) lines(x,y, lwd=4) lines(-x,y, lwd=4) text(0,7,"Happy Valentine's Day",col='red',cex=2.5) text(0,5.5,name,col='red',cex=2.5) }

I also sent one of these cute science-themed Valentines cards that I bought on Etsy (guess which one).

More Read

Integrating a Content Plan with Demand Gen [VIDEO]
Creating a Culture of Transparency
The Hadoop Honeymoon Is Over
If I Told You a Fractal Solution, Could You Change the CEO’s Mind?
‘SOA’ dead as of January 1st, analyst says
TAGGED:R scriptValentine's Day
Share This Article
Facebook Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

image fx (2)
Monitoring Data Without Turning into Big Brother
Big Data Exclusive
image fx (71)
The Power of AI for Personalization in Email
Artificial Intelligence Exclusive Marketing
image fx (67)
Improving LinkedIn Ad Strategies with Data Analytics
Analytics Big Data Exclusive Software
big data and remote work
Data Helps Speech-Language Pathologists Deliver Better Results
Analytics Big Data Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

R Script Creates a Map of Worldwide Email Traffic

3 Min Read

Resampling Data in Hadoop with RHadoop

1 Min Read

Lots of Data Does Not Equal “Big Data”

7 Min Read

Open Data App for the Paris Métro

3 Min Read

SmartData Collective is one of the largest & trusted community covering technical content about Big Data, BI, Cloud, Analytics, Artificial Intelligence, IoT & more.

AI and chatbots
Chatbots and SEO: How Can Chatbots Improve Your SEO Ranking?
Artificial Intelligence Chatbots Exclusive
ai chatbot
The Art of Conversation: Enhancing Chatbots with Advanced AI Prompts
Chatbots

Quick Link

  • About
  • Contact
  • Privacy
Follow US
© 2008-25 SmartData Collective. All Rights Reserved.
Go to mobile version
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?