Learn R Programming

RRNA (version 1.0)

circleCoord: Internal function for finding the coordinates of NT's in a circle

Description

Given an integer N the function returns N (x,y) coordinates for a polygon with N sides each of length 1. This is used to plot the loops in an RNA structure

Usage

circleCoord(n)

Arguments

n
Integer determining the number of sides

Value

Data frame with columns x,y defining coordinates of the polygons

Examples

Run this code
pts=circleCoord(10)
plot(pts$x,pts$y)

Run the code above in your browser using DataLab