I will attempt to explain my objective the best I can...
Let's say I have the following code
age1 <- 7.4832653674979620E+003
prof1 <- data.frame(c(1:1491),seq(0,3.0734451332212645E-046,length.out=1491)) # zone, luminosity
age2 <- 1.2346702987925202E+005
prof2 <- data.frame(c(1:1491),seq(0,3.0631080237264987E-046,length.out=1491))
...
age1000 <- 1.2753669357777405E+010
prof1000 <- data.frame(c(1:3398),seq(0,.8498789846917101E-001,length.out=3398))
...
age6062 <- 2.4189944009350475E+010
prof6062 <- data.frame(c(1:1874),seq(0,0,length.out=1874))
I intend to create a 2D color gradient plot of these values, with ages on the x,zones on the y axis, and luminosity on the z axis.
As you can probably tell, the lengths for the vectors in the data frame that represent zones are not equal length with one another. Conceptually, for my code, zones represent slices of a star, as you sliced it like an onion. The first element in the zones vectors, which is 1
for all the vectors, represents the surface of the star, and the maximum zone number, which is different for all the zone vectors, represents the star center.
I want to represent on the y axis NOT zone number, or as an axis of discrete numbers, but the location within the star with respect to surface at zone 1
and the center at zone (max zone number for that profile file)
, kind of like a gradient or spectrum.
Is there a way to write how to represent all these columns of zones and reconcile into sort of a gradient-like y axis, where the top of the y axis is the surface, and the bottom of the y axis is the center? Ultimately, I want to do is to create a 2D color gradient plot with age on x axis, the location of the luminosity values
on the y axis, and a color gradient illustrating the magnitude of these luminosity
numbers at this particular location in the star.
Apologies, since you can tell I am an astronomer, I did not know how to ask this with computer science lingo. If this too hefty of a ask, could you kindly point me to the right direction/resources so I may learn how to accomplish this task? If there is still confusion, please ask again and I can clarify anything.