Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 R 图中键入联合符号,如 A \cup B。你知道该怎么做吗?
这应该有效:
plot(1:10, main = expression(A*union(B)))
你需要使用expression. 这有点繁琐,但试试这个:
expression
plot.new() text(0.5,0.5,expression(paste("A",union(B))))
有关?plotmath更多详细信息,请参阅。
?plotmath