plot_mandala | R Documentation |
Function to plot a mandala with points in dataframe
dt |
dataframe with points x and y |
Returns a plot
Luciane Ferreira Alcoforado
require(ggplot2) n=500; raio=1; t=seq(0,2*pi, length.out = n) x1=raio*cos(t) y1=raio*sin(t) #pontos para os 3 círculos: translação dos pontos iniciais (x1,x=c(x1,x1-raio,x1-2*raio) x=c(x1,x1-raio,x1-2*raio) y=c(y1,y1,y1) dt=data.frame(x,y,z="circulo") rotacao = (pi/8)*(1:16); n=length(x); xt1=x; yt1=y dt=f_rotacao(x=dt$x, y=dt$y, rotacao) plot_mandala(dt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.