|
Happy Valentine's Day! Combine today with Stata and you get a heart shaped graph. The one I made below was made using graph3d in Stata.
Did you notice I also used the "<3" marker labels here? Hearts on hearts on this graph ;)
Below is the code I used to make the heart graph. I added the title, note, and other options using the graph editor.
/* Author: Belen Chavez
Stata Heart Code
Happy Valentine's Day <3 */
clear all
set obs 463
gen t = .
local c = 1
forv i = 0(0.05)`=2`c(pi)''{
replace t = `i' in `c'
local ++c
}
gen x = 16*sin(t)^3
gen y = 13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t)
gen mlab = "<3"
graph3d x y t , colorscheme(cr) scale(3) markeroptions(mlab(mlab))
Happy Valentine's Day to my blog readers <3
1 Comment
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorMy name is Belen, I like to play with data using Stata during work hours and in my free time. I like blogging about my Fitbit, Stata, and random musings. Archives
March 2018
Categories
All
|
