Description Usage Arguments Examples
View source: R/1.4_ISS_rotate.R
Rotate by angle and flip by axix of ISS data
1 | ISS_rotate(data, rot = 0, flipby = NULL)
|
data |
Input data in class MolDiaISS. Output of readISS. |
rot |
Rotation angle (Degree). Default is zero. Negative angle define the anti-clock wise rotation. |
flipby |
Flip the data points by x or y axis. Default is NULL. Possible value is NULL, "x", "y". |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Read ISS data
mydata <- readISS(file = system.file("extdata", "Hypocampus_left.csv", package="MolDia"),
cellid = "CellId", centX = "centroid_x", centY = "centroid_y")
# Flip/rotate ISS data
mydata_x <- ISS_rotate (data = mydata, rot = 0, flipby = "x")
mydata_y <- ISS_rotate (data = mydata, rot = 0, flipby = "y")
mydata_90 <- ISS_rotate (data = mydata, rot = 90)
# Plot ISS data
res <- ISS_map(data = mydata, what = "cell", main = "Left hippocampus")
res1 <- ISS_map(data = mydata_x, what = "cell", main = "Left hippocampus")
res1 <- ISS_map(data = mydata_y, what = "cell", main = "Left hippocampus")
res1 <- ISS_map(data = mydata_90, what = "cell", main = "Left hippocampus")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.