Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ternary plot for He-Ar-N #23

Open
guillecg opened this issue Apr 3, 2024 · 1 comment
Open

Add ternary plot for He-Ar-N #23

guillecg opened this issue Apr 3, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@guillecg
Copy link
Collaborator

guillecg commented Apr 3, 2024

Check PER22 data

@guillecg guillecg added the enhancement New feature or request label Apr 3, 2024
@guillecg guillecg self-assigned this Apr 3, 2024
@alebastianoni
Copy link
Contributor

Guille,
This is the code I have to reproduce to the best of my limited capabilities the ternary plot! hehehehe

ggtern::ggtern(data=data_gas,aes(x=He10,y=N2/100, z=Ar)) +
geom_point(aes(fill=time), alpha=0.5, shape=21, size=6, stroke=0.3)+
geom_point(data = subset(data_gas, sampling %in% c("ASW")),fill="red",size=6,
shape=21,alpha=.5,stroke=0.3) +
geom_point(data = subset(data_gas, sampling %in% c("AIR")),fill="black",size=6,
shape=21,alpha=.5,stroke=0.3) +
geom_point(data = subset(data_gas, sampling %in% c("Arc_type1")),fill="grey",size=6,
shape=21,alpha=.5,stroke=0.3) +
geom_point(data = subset(data_gas, sampling %in% c("Arc_type2")),fill="grey",size=6,
shape=21,alpha=.5,stroke=0.3) +
scale_fill_viridis_d(direction = -1)+
labs( x = expression(He%
%10),
y = expression(N[2]/100),
z = "Ar",
fill="Sampling date")+
theme_hidemask()+
theme_bw(base_size = 16) +
theme_hidegrid_major()+
theme_nogrid_minor()+
theme_nomask()

The end result after adding the connecting lines on Inkscape is this...
ternary_gas_v3

@guillecg guillecg added the help wanted Extra attention is needed label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants