twist_galaxy | R Documentation |
The purpose of this function is to re-orient the galaxy and rotate the observer around the z-axis.
twist_galaxy(part_data, twist_rad)
part_data |
A data.frame describing the particles positions and velocities. |
twist_rad |
The observed inclination angle in radians. |
Returns the original data frame containing the original particle information but in the new orientation.
galaxy_data = data.frame("x"=stats::rnorm(100), "y"=stats::rnorm(100),
"z"=stats::rnorm(100), "vx"=stats::rnorm(100),
"vy"=stats::rnorm(100), "vz"=stats::rnorm(100))
observed_data = twist_galaxy(galaxy_data, twist_rad = 1.047)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.