# NOT RUN {
library(ggplot2)
dat1=rectxy(x=4, y=3, a=2, b=1, angle=0, xytype="bottomleft", todf=TRUE)
dat2=rectxy(x=4, y=3, a=2, b=1, angle=pi/6, xytype="bottomleft", todf=TRUE)
ggplot()+
geom_polygon(data=dat1, aes(x=x, y=y), fill="red", alpha=0.3)+
geom_polygon(data=dat2, aes(x=x, y=y), fill="blue", alpha=0.3)+
coord_fixed()
# }
Run the code above in your browser using DataLab