By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    analyst,women,looking,at,kpi,data,on,computer,screen
    What to Know Before Recruiting an Analyst to Handle Company Data
    6 Min Read
    AI analytics
    AI-Based Analytics Are Changing the Future of Credit Cards
    6 Min Read
    data overload showing data analytics
    How Does Next-Gen SIEM Prevent Data Overload For Security Analysts?
    8 Min Read
    hire a marketing agency with a background in data analytics
    5 Reasons to Hire a Marketing Agency that Knows Data Analytics
    7 Min Read
    predictive analytics for amazon pricing
    Using Predictive Analytics to Get the Best Deals on Amazon
    8 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-23 SmartData Collective. All Rights Reserved.
Reading: Belated Gift: Make a Valentine’s Heart with R
Share
Notification Show More
Aa
SmartData CollectiveSmartData Collective
Aa
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
Last updated: 2013/02/16 at 9:01 AM
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

Lots of Data Does Not Equal “Big Data”

Open Data App for the Paris Métro
R Script Creates a Map of Worldwide Email Traffic
Resampling Data in Hadoop with RHadoop

TAGGED: R script, Valentine's Day
DavidMSmith February 16, 2013
Share This Article
Facebook Twitter Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

data breaches
How Hospital Security Breaches Devastate Local Communities
Policy and Governance
analyst,women,looking,at,kpi,data,on,computer,screen
What to Know Before Recruiting an Analyst to Handle Company Data
Analytics
data perspective
Tackling Bias in AI Translation: A Data Perspective
Big Data
Data Ethics: Safeguarding Privacy and Ensuring Responsible Data Practices
Data Ethics: Safeguarding Privacy and Ensuring Responsible Data Practices
Best Practices Big Data Data Collection Data Management Privacy

Stay Connected

1.2k Followers Like
33.7k Followers Follow
222 Followers Pin

You Might also Like

Lots of Data Does Not Equal “Big Data”

7 Min Read

Open Data App for the Paris Métro

3 Min Read

R Script Creates a Map of Worldwide Email Traffic

3 Min Read

Resampling Data in Hadoop with RHadoop

1 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 is improving the safety of cars
From Bolts to Bots: How AI Is Fortifying the Automotive Industry
Artificial Intelligence
data-driven web design
5 Great Tips for Using Data Analytics for Website UX
Big Data

Quick Link

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

Sign in to your account

Lost your password?